ROR 3.1:捆绑包更新失败 (eventmachine gem)
请帮助我解决捆绑包和宝石依赖关系。
Windows 7 上的 RoR。 我正在尝试运行捆绑更新,但在更新过程中我得到:
具有本机扩展的 Italling eventmachine (0.12.10) 不幸的是, 发生致命错误。请将此错误报告给 Bundler 问题跟踪器 https://github.com/carlhuda/bundler/issues 以便我们 可以修复它。谢谢! C:/RailsInstaller/Ruby1.9.2/lib/ruby/site_ruby/1.9.1/rubygems/installer.rb:529:in `build_extensions 中的块中的救援':错误:无法构建 gem 本机扩展。 (宝石::安装程序::扩展构建错误) ..
捆绑更新此时停止。
瘦 Web 服务器需要 Eventmachine。 我已经手动安装了事件机器: gem install eventmachine --pre
在我的 gemfile 中 我得到了:
gem 'thin' (nothing about eventmachine)
在我的 gemfile.lock 中捆绑安装/更新之后:
...
eventmachine (1.0.0.beta.4.1-x86-mingw32)
...
thin (1.2.11-x86-mingw32)
daemons (>= 1.0.9)
eventmachine (>= 0.12.6)
rack (>= 1.0.0)
..
DEPENDENCIES
eventmachine
rails (= 3.1)
....
thin
就可以了
如果我运行“捆绑安装” ,如果我运行服务器(瘦启动) - 开始一切正常。
Please, help me to tackle with bundle and gem dependencies.
RoR on Windows 7.
i'm trying to run bundle update, but while update process I get:
Italling eventmachine (0.12.10) with native extensions Unfortunately,
a fatal error has occurred. Please report this error to the Bundler
issue tracker at https://github.com/carlhuda/bundler/issues so that we
can fix it. Thanks!
C:/RailsInstaller/Ruby1.9.2/lib/ruby/site_ruby/1.9.1/rubygems/installer.rb:529:in
`rescue in block in build_extensions': ERROR: Failed to build gem
native extension. (Gem::Installer::ExtensionBuildError)
..
Bundle update stops at this point.
Eventmachine is needed for thin web server.
i've installed event machine manually: gem install eventmachine --pre
in my gemfile i've got:
gem 'thin' (nothing about eventmachine)
after bundle install/update in my gemfile.lock:
...
eventmachine (1.0.0.beta.4.1-x86-mingw32)
...
thin (1.2.11-x86-mingw32)
daemons (>= 1.0.9)
eventmachine (>= 0.12.6)
rack (>= 1.0.0)
..
DEPENDENCIES
eventmachine
rails (= 3.1)
....
thin
if I run "bundle install" its ok
if I run server (thin start) - it starts ok.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我已经解决了。需要锁定 gemfile 中的版本,以告诉捆绑包我需要的版本:
gem 'eventmachine', "1.0.0.beta.4.1
编辑: (11/14/2012) gem 版本不再是测试版了。安装 gem 时不会再遇到问题了:)
I've solved it. needed to lock the version in gemfile, to tell bundle that I need version that I :
gem 'eventmachine', "1.0.0.beta.4.1
EDIT: (11/14/2012) The gem version is not beta anymore. you won't be having problem with installing the gem anymore. :)