[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

comp.lang.ruby

sudden problems with gem

Simon Schuster

8/10/2007 5:44:00 PM

I believe it's in response to trying to consolidate where gems are
kept. (why ARE there so many directories used for this? the difference
between say /var/lib/gems, /usr/lib/ruby/1.8,
/usr/lib/ruby/gems/1.8/gems seems a little flattened... but I'm kind
of new to all this.)

so this is what I get:

$ gem
/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:in
`require'
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:in
`require'
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:in
`require'
from /usr/local/lib/site_ruby/1.8/rubygems.rb:112:in `manage_gems'
from /usr/bin/gem:10

1 Answer

Eric Hodel

8/11/2007 1:18:00 AM

0

On Aug 10, 2007, at 10:43, Simon Schuster wrote:

> I believe it's in response to trying to consolidate where gems are
> kept. (why ARE there so many directories used for this? the difference
> between say /var/lib/gems, /usr/lib/ruby/1.8,
> /usr/lib/ruby/gems/1.8/gems seems a little flattened... but I'm kind
> of new to all this.)

It sounds like you installed RubyGems twice, or with two different
ruby interpreters. Remove both gem directories then reinstall
RubyGems without any options.

--
Poor workers blame their tools. Good workers build better tools. The
best workers get their tools to do the work for them. -- Syndicate Wars