[Bug 389948] [NEW] gem1.9 install the gems on /usr/lib/ruby/gems/1.9.0 instead of /var/lib/gems/1.9.0
Ricardo Pérez López
ricpelo at gmail.com
Sat Jun 20 17:00:05 UTC 2009
Public bug reported:
Binary package hint: rubygems1.9
gem1.9 incorrectly install the gems on /usr/lib/ruby/gems/1.9.0 instead
of the correct /var/lib/gems/1.9.0, so the Ruby 1.9 system can't find
any gem:
ricardo at kadath:~$ sudo gem1.9 install wirble
Successfully installed wirble-0.1.3
1 gem installed
Installing ri documentation for wirble-0.1.3...
Updating class cache with 0 classes...
Installing RDoc documentation for wirble-0.1.3...
ricardo at kadath:~$ ls /var/lib/gems/1.9.0/
ricardo at kadath:~$ ls /usr/lib/ruby/gems/1.9.0/gems/
wirble-0.1.3
ricardo at kadath:~$ irb1.9
irb(main):001:0> require 'rubygems'
=> false
irb(main):002:0> require 'wirble'
LoadError: no such file to load -- wirble
from (irb):2:in `require'
from (irb):2
from /usr/bin/irb1.9:12:in `<main>'
irb(main):003:0>
A workaround is to create a symlink from /var/lib/gems/1.9.0 to
/usr/lib/ruby/gems/1.9.0:
ricardo at kadath:~$ sudo rm -rf /var/lib/gems/1.9.0
ricardo at kadath:~$ sudo ln -s /usr/lib/ruby/gems/1.9.0 /var/lib/gems/1.9.0
ricardo at kadath:~$ irb1.9
irb(main):001:0> require 'rubygems'
=> false
irb(main):002:0> require 'wirble'
=> true
irb(main):003:0>
Now, the Ruby 1.9 system can find any gem installed with gem1.9.
** Affects: libgems-ruby (Ubuntu)
Importance: Undecided
Status: New
--
gem1.9 install the gems on /usr/lib/ruby/gems/1.9.0 instead of /var/lib/gems/1.9.0
https://bugs.launchpad.net/bugs/389948
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
--
ubuntu-bugs mailing list
ubuntu-bugs at lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
More information about the universe-bugs
mailing list