Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Could not bundle install because of 'eventmachine 1.0.3'

$ 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
like image 226
Shion Yamaguchi Avatar asked Sep 24 '14 22:09

Shion Yamaguchi


3 Answers

Try to edit Gemfile.lock and change eventmachive version from 1.0.3 to 1.0.4. This works for me.

like image 80
Andrey Avatar answered Nov 20 '22 16:11

Andrey


  • bundle update
  • bundle install Hope this will work.
like image 21
Aathi Avatar answered Nov 20 '22 16:11

Aathi


I had a similar issue with eventmachine -v '1.0.4' and i resolved it like this.

gem install eventmachine -v '1.0.4'  -- --with-cppflags=-I/usr/local/opt/openssl/include
like image 3
techdreams Avatar answered Nov 20 '22 17:11

techdreams