[lnkForumImage]
TotalShareware - Download Free Software

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


 

Forums >

comp.lang.ruby

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

Jp Jp

12/27/2007 5:43:00 PM

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 ?
--
Posted via http://www.ruby-....

4 Answers

Michael Greenly

12/28/2007 3:08:00 AM

0

[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

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).
>
>
>
> what can I do ?
> --
> Posted via http://www.ruby-....
>
>


--
Michael Greenly

Jp Jp

12/28/2007 9:34:00 AM

0

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

it stil doesn't work for me :(
--
Posted via http://www.ruby-....

Michael Greenly

12/28/2007 10:04:00 AM

0

[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.

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
>
> it stil doesn't work for me :(
> --
> Posted via http://www.ruby-....
>
>


--
Michael Greenly
http://blog.michaelg...

Jp Jp

12/28/2007 10:14:00 AM

0

Michael Greenly wrote:
> 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..
--
Posted via http://www.ruby-....