gem on ubuntu problem : /usr/local/lib/site_ruby/1.8/rubygem

J

Jp Jp

Hi all,

I've got a serious problem installing gem on my ubuntu. i used the
apt-get manager.

here is what i get when i try to launch 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

even whe I add a "require 'rubygems/gem_runner'" in /usr/bin/gem, same
error (but last line number is 11).



what can I do ?
 
M

michael greenly

[Note: parts of this message were removed to make it a legal post.]

Something doesn't add up. It's looking in /usr/local. It looks to me like
you've either done a 'gem update --system' or tried to install gems from
source at some point. Regardless removing it and reinstalling it should fix
the problem.

This should remove it
$> sudo apt-get remove --purge rubygems

Then you're free to install from source or from apt
$> sudo apt-get install rubygems
 
J

Jp Jp

Michael said:
This should remove it
$> sudo apt-get remove --purge rubygems

Then you're free to install from source or from apt
$> sudo apt-get install rubygems

it stil doesn't work for me :(
 
M

michael greenly

[Note: parts of this message were removed to make it a legal post.]

I'm betting there's a partially installed 'from source gems' there then?
Make sure there's nothing in /usr/local/lib/site_ruby/gems or /var/lib/gems
before reinstalling.
 
J

Jp Jp

Michael said:
I'm betting there's a partially installed 'from source gems' there then?
Make sure there's nothing in /usr/local/lib/site_ruby/gems or
/var/lib/gems
before reinstalling.

well you are right about a partially installed 'from source gems', but
I removed everything in both directories

I ended with compiling ruby 1.9 myself and gem provided with it is ok.
compiling ruby is pretty fast and harmless.
still, I don't understand why my standard ubuntu ruby installation was
KO..
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,582
Members
45,057
Latest member
KetoBeezACVGummies

Latest Threads

Top