Wirianto Djunaidi
1/10/2008 10:53:00 PM
gga wrote:
> On an Ubuntu box.
>
> I have been experimenting with ruby1.9 and now I am finding that gems
> are gone from 1.8. It seems by RUBYLIB path is never modified.
>
> I don't know if that had anything to do with it or an update of the OS
> screwed up something.
>
> $ ls /usr/lib/ruby/gems/1.8/
> gems/
> (all gems are listed)
>
> $ type ruby
> ruby is /usr/bin/ruby
>
> $ ls -l /usr/bin/ruby
> lrwxrwxrwx 1 root root 7 2007-04-23 07:58 /usr/bin/ruby -> ruby1.8
>
> $ type irb1.8
> /usr/bin/irb1.8
>
> $ head -n1 /usr/bin/irb1.8
> #!/usr/bin/ruby1.8
>
> $ /usr/bin/ruby1.8 --version
> ruby 1.8.6 (2007-06-07 patchlevel 36) [x86_64-linux]
>
>
> $ export RUBYOPT='-w -rubygems'
>
> $ irb1.8
>
> irb> $:
> => ["/home/gga/ruby/libs", "/home/gga/ruby/libs", "/usr/local/lib/
> site_ruby/1.8", "/usr/local/lib/site_ruby/1.8/x86_64-linux", "/usr/
> local/lib/site_ruby", "/usr/lib/ruby/1.8", "/usr/lib/ruby/1.8/x86_64-
> linux", "."]
>
> irb> require 'rubygems'
> => false
>
> irb> require 'rails'
> LoadError: no such file to load -- rails
>
>
> $ gem --version
> 0.9.4
>
> Can anyone help me revert back to a working rubygems?
>
>
On my ubuntu box when installing gems using the package manager, the
default path for gems is under /var/lib/gems