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).
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
···
On Dec 27, 2007 11:43 AM, Jp Jp <nnczm12u5227vj1@jetable.com> wrote:
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).
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.
···
On Dec 28, 2007 3:33 AM, Jp Jp <nnczm12u5227vj1@jetable.com> wrote:
Michael Greenly wrote:
> 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
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..