由于' eventmachine 1.0.3'无法捆绑安装

时间:2014-09-24 22:48:34

标签: ruby-on-rails ruby rubygems bundler eventmachine

$ bundle install

Errno::ENOENT: No such file or directory @ rb_sysopen - /Users/Sean/.rbenv/versions/2.1.0/lib/ruby/gems/2.1.0/gems/eventmachine-1.0.3/ext/gem_make.out

An error occurred while installing eventmachine (1.0.3), and Bundler cannot
continue.
Make sure that `gem install eventmachine -v '1.0.3'` succeeds before bundling.

$ gem list

eventmachine (1.0.3 x86-mingw32)

$ gem build eventmachine -v 1.0.3

ERROR:  While executing gem ... (Gem::CommandLineError)
Too many gem names (eventmachine, 1.0.3); please specify only one

3 个答案:

答案 0 :(得分:34)

尝试编辑Gemfile.lock并将eventmachive版本从1.0.3更改为1.0.4。 这对我有用。

答案 1 :(得分:9)

  • 捆绑更新
  • 捆绑安装希望这会有用。

答案 2 :(得分:2)

我与eventmachine -v '1.0.4'有类似的问题,我这样解决了。

gem install eventmachine -v '1.0.4'  -- --with-cppflags=-I/usr/local/opt/openssl/include