ruby-on-rails – 在Ruby 1.9.3中安装Mongrel
发布时间:2020-12-16 22:44:25 所属栏目:百科 来源:网络整理
导读:如何成功安装Mongrel for ruby?? 1.9.3 这是错误: Building native extensions. This could take a while...ERROR: Error installing mongrel: ERROR: Failed to build gem native extension. /usr/bin/ruby1.9.1 extconf.rbchecking for main() in -lc...
如何成功安装Mongrel for
ruby?? 1.9.3
这是错误: Building native extensions. This could take a while... ERROR: Error installing mongrel: ERROR: Failed to build gem native extension. /usr/bin/ruby1.9.1 extconf.rb checking for main() in -lc... yes creating Makefile make compiling http11_parser.c compiling http11.c http11.c: In function ‘http_field’: http11.c:70:3: error: format not a string literal and no format arguments [-Werror=format-security] http11.c:71:3: error: format not a string literal and no format arguments [-Werror=format-security] http11.c:77:22: error: ‘struct RString’ has no member named ‘ptr’ http11.c:77:50: error: ‘struct RString’ has no member named ‘len’ http11.c:77:27: warning: left-hand operand of comma expression has no effect [-Wunused-value] http11.c: In function ‘request_uri’: http11.c:102:3: error: format not a string literal and no format arguments [-Werror=format-security] http11.c: In function ‘fragment’: http11.c:113:3: error: format not a string literal and no format arguments [-Werror=format-security] http11.c: In function ‘request_path’: http11.c:124:3: error: format not a string literal and no format arguments [-Werror=format-security] http11.c: In function ‘query_string’: http11.c:135:3: error: format not a string literal and no format arguments [-Werror=format-security] http11.c: In function ‘header_done’: http11.c:172:13: error: ‘struct RString’ has no member named ‘ptr’ http11.c:172:13: error: ‘struct RString’ has no member named ‘ptr’ http11.c:172:13: error: ‘struct RString’ has no member named ‘ptr’ http11.c:174:89: error: ‘struct RString’ has no member named ‘ptr’ http11.c:176:52: error: ‘struct RString’ has no member named ‘ptr’ http11.c:177:26: error: ‘struct RString’ has no member named ‘len’ http11.c: In function ‘HttpParser_execute’: http11.c:298:23: error: ‘struct RString’ has no member named ‘ptr’ http11.c:299:23: error: ‘struct RString’ has no member named ‘len’ http11.c:307:5: error: format not a string literal and no format arguments [-Werror=format-security] cc1: some warnings being treated as errors make: *** [http11.o] Error 1 Gem files will remain installed in /var/lib/gems/1.9.1/gems/mongrel-1.1.5 for inspection. Results logged to /var/lib/gems/1.9.1/gems/mongrel-1.1.5/ext/http11/gem_make.out 我已经尝试过sudo gem安装mongrel –pre 我不知道为什么它不工作是否与Ruby 1.9.1兼容? 解决方法
You are not alone.在线上,有
a link to a possible fix.我没有试过这样YMMV,但它似乎是一个合理的修复.
鉴于Mongrel不再被更新,为什么不切换到像Thin这样的东西? 编辑:对不起,我看到你问1.9.3.我的理解是,Mongrel(应该是)兼容高达1.9.1,但在1.9.2中打破了.另一个很好的理由转向更现代化和维护的东西. (编辑:李大同) 【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容! |
相关内容
- c – STL向量和新运算符
- c# – 在拖放游戏中匹配对象
- oracle mysql sqlserver 查看当前所有数据库及数据库基本操
- XML 在WEB上加载的路径问题!
- SQLLite (三):sqlite3_get_table,sqlite3_free_table
- iphone – XCode 5在验证/上传“准备上传”应用程序时挂起超
- ruby – 将Shoes.app编译/打包到一个独立的Mac.app?
- sqlite – INSERT OR REPLACE外键ON DELETE CASCADE工作得太
- Flex List 分页
- 如何将其他XML附加/合并到SQL Server 2005中的现有XML字段中