Could not find RubyGem package

I cloned the diaspora for github, git: //github.com/diaspora/diaspora.git

I tried to install it. Error starting package.

$ bundle install /usr/local/lib/site_ruby/1.8/rubygems.rb:812:in `report_activate_error': Could not find RubyGem bundler (>= 0) (Gem::LoadError) from /usr/local/lib/site_ruby/1.8/rubygems.rb:223:in `activate' from /usr/local/lib/site_ruby/1.8/rubygems.rb:1146:in `gem' from /usr/bin/bundle:18 

I am using rails 3 and ruby ​​1.8 on ubuntu 11.04. How to fix it? Please, help

+7
source share
3 answers

Have you installed bundler gem?

 $ gem install bundler 

You may need sudo privileges.

+22
source

Hmm, maybe you have the bundle command and the gem collector installed for / usr / bin / ruby, and after that another Ruby is installed in / usr / local / bin / ruby?

Can you do which ruby and head -1 /usr/bin/bundle ? Maybe a gem list ?

+2
source

Presumably, this was fixed long ago, but in the interests of others ....

My problems were that when I installed gem_PATH, it was installed elsewhere for the current GEM_PATH, so it could not be found.

So,

 GEM_PATH=/usr/lib/ruby/gems/1.8/ bundle install 

did the business by setting the GEM_PATH value to the actual location of the gem folder in which the plug harness was installed.

+2
source

All Articles