[DRE-maint] [Bug 389948] Re: gem1.9 install the gems on /usr/lib/ruby/gems/1.9.0 instead of /var/lib/gems/1.9.0
Lucas Nussbaum
lucas at lucas-nussbaum.net
Mon Nov 1 08:14:07 UTC 2010
that's a decision made by the Debian maintainers to respect the Linux
File Hierarchy Standard.
** Changed in: libgems-ruby (Ubuntu)
Status: New => Invalid
--
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 subscribed to Ubuntu.
Status in “libgems-ruby” package in Ubuntu: Invalid
Bug description:
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.
More information about the Pkg-ruby-extras-maintainers
mailing list