ROR 3.1:捆绑更新失败(eventmachine gem) [英] ROR 3.1: Bundle update fails (eventmachine gem)
问题描述
请帮我解决bundle和gem依赖项。
Please, help me to tackle with bundle and gem dependencies.
Windows 7上的RoR。
我正在尝试运行bundle更新,但是我得到的更新过程为:
RoR on Windows 7. i'm trying to run bundle update, but while update process I get:
具有本机扩展的Italling eventmachine(0.12.10)不幸的是,发生了
a致命错误。请将此错误报告给 https://github.com/carlhuda/bundler的Bundler
问题跟踪器/问题,以便我们
可以修复它。谢谢!
C:/RailsInstaller/Ruby1.9.2/lib/ruby/site_ruby/1.9.1/rubygems/installer.rb:529:in
`response in block in build_extensions':错误:无法生成gem
本机扩展。 (Gem :: Installer :: ExtensionBuildError)
..
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) ..
捆绑更新此时停止。
瘦Web服务器需要Eventmachine。
我已经手动安装了事件机器:gem install eventmachine --pre
Eventmachine is needed for thin web server. i've installed event machine manually: gem install eventmachine --pre
在我的gemfile中,我已经得到:
in my gemfile i've got:
gem 'thin' (nothing about eventmachine)
在我的gemfile.lock中安装/更新包后:
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.
推荐答案
我ve解决了。需要将版本锁定在gemfile中,以告诉bundle我需要以下版本:
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
gem 'eventmachine', "1.0.0.beta.4.1
编辑:(2012年11月14日),gem版本不再是beta版。安装gem不再会有问题。
(11/14/2012) The gem version is not beta anymore. you won't be having problem with installing the gem anymore. :)
这篇关于ROR 3.1:捆绑更新失败(eventmachine gem)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!