Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

ruby bundle install require: no such files to load error

I am running into troubles installing gems through bundle install from an app that i cloned through git.

Here is the what the output from bundle install looks like:

bundle install
/usr/lib/ruby/vendor_ruby/bundler/rubygems_ext.rb:8:in `require': no such file to load --     rubygems (LoadError)
from /usr/lib/ruby/vendor_ruby/bundler/rubygems_ext.rb:8
from /usr/lib/ruby/vendor_ruby/bundler.rb:11:in `require'
from /usr/lib/ruby/vendor_ruby/bundler.rb:11
from /usr/bin/bundle:4:in `require'
from /usr/bin/bundle:4

I read up on google and other stackoverflow questions but the file pointed to above is in th ruby folder so it should not be anyway related to the app (which in theory would mean i wouldn't be able to bundle install for any app). any way how to fix this??

any help will be deeply appreciated!

like image 500
ShivvyBee Avatar asked May 08 '13 07:05

ShivvyBee


1 Answers

I have the same question with yours, I searched a lot, but no one is the solution, at last, I asked co-worker in my company, he just ran

gem list

to list the local gems, we found there's no bundler gem, so he ran

gem install bundler

then he ran

bundle install

OK, it worked.

like image 137
Feuda Avatar answered Sep 21 '22 16:09

Feuda