Ruby gems on ubuntu

I removed rubygems entirely to start out clean. When I reinstalled the
package (via Synaptic), I ran this from the command line.

$gem -v
/usr/local/lib/site_ruby/1.8/rubygems/custom_require.rb:27:in
gem_original_require': no such file to load -- sources (LoadError) from /usr/local/lib/site_ruby/1.8/rubygems/custom_require.rb:27:inrequire’
from
/usr/local/lib/site_ruby/1.8/rubygems/source_info_cache.rb:6
from
/usr/local/lib/site_ruby/1.8/rubygems/custom_require.rb:27:in
gem_original_require' from /usr/local/lib/site_ruby/1.8/rubygems/custom_require.rb:27:inrequire’
from
/usr/local/lib/site_ruby/1.8/rubygems/remote_installer.rb:12
from
/usr/local/lib/site_ruby/1.8/rubygems/custom_require.rb:27:in
gem_original_require' from /usr/local/lib/site_ruby/1.8/rubygems/custom_require.rb:27:inrequire’
from /usr/local/lib/site_ruby/1.8/rubygems.rb:112:in
`manage_gems’
from /usr/bin/gem:10


Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com

[email protected] wrote:

I removed rubygems entirely to start out clean. When I reinstalled the package (via Synaptic), I ran this from the command line.

Is Ubunutu installing it under /usr/lib, instead of /usr/local/lib?


James B.

“Programs must be written for people to read, and only incidentally
for machines to execute.”

  • H. Abelson and G. Sussman
    (in "The Structure and Interpretation of Computer Programs)

Hi,

I had the same problem on Ubuntu Feisty and Gutsy and corrected the
problem by setting the GEM_HOME environment variable to :

GEM_HOME=/var/lib/gems/1.8

Chris