Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/magento/5.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Ruby on rails ROR 3.1:包更新失败(eventmachine gem)_Ruby On Rails_Bundler - Fatal编程技术网

Ruby on rails ROR 3.1:包更新失败(eventmachine gem)

Ruby on rails ROR 3.1:包更新失败(eventmachine gem),ruby-on-rails,bundler,Ruby On Rails,Bundler,请帮助我处理bundle和gem依赖关系 Windows 7上的RoR。 我正在尝试运行捆绑包更新,但在更新过程中,我得到: Italing eventmachine(0.12.10)带有本机扩展, 发生了致命错误。请向捆绑程序报告此错误 发布跟踪程序,以便我们 我能修好它。谢谢 C:/RailsInstaller/Ruby1.9.2/lib/ruby/site\u ruby/1.9.1/rubygems/installer.rb:529:in `在生成扩展中的块中进行救援:错误:未能生成gem

请帮助我处理bundle和gem依赖关系

Windows 7上的RoR。 我正在尝试运行捆绑包更新,但在更新过程中,我得到:

Italing eventmachine(0.12.10)带有本机扩展, 发生了致命错误。请向捆绑程序报告此错误 发布跟踪程序,以便我们 我能修好它。谢谢 C:/RailsInstaller/Ruby1.9.2/lib/ruby/site\u ruby/1.9.1/rubygems/installer.rb:529:in `在生成扩展中的块中进行救援:错误:未能生成gem 本机扩展。(Gem::Installer::ExtensionBuildError)

捆绑包更新在此点停止

精简web服务器需要Eventmachine。 我已经手动安装了事件机:gem install eventmachine--pre

在我的档案中,我有:

gem 'thin' (nothing about eventmachine)
在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
如果我运行“bundle安装”,就可以了


如果我运行服务器(精简启动)-它启动正常。

我已经解决了它。需要在gemfile中锁定版本,以告诉bundle我需要的版本是:

gem'eventmachine',“1.0.0.beta.4.1


编辑:(2012年11月14日)gem版本不再是beta版。您在安装gem时不会再有问题了。

正如您所说,它已过beta版。这意味着您可以将其锁定到1.0.0稳定版:
gem'eventmachine',“1.0.0”