Dear lazyweb,
I have a problem packaging gems in my attempts to get ruby-1.9.1 going. Below
is some output describing what the problem is exactly, and really, it is
beyond me.
The following changes have been applied to how a normal Fedora ruby
installation runs, and gems are packaged:
- The search path for ruby is:
$ ruby -e 'puts $:'
/usr/local/share/ruby/1.9.1
/usr/local/share/ruby/1.9
/usr/local/share/ruby/
/usr/local/lib64/ruby/1.9.1
/usr/local/lib64/ruby/1.9
/usr/local/lib64/ruby/
/usr/lib64/ruby/1.9.1
/usr/lib64/ruby/1.9
/usr/lib64/ruby/
/usr/share/ruby/1.9.1
/usr/share/ruby/1.9
/usr/share/ruby/
- The packaged gems are being installed (by default) in /usr/share/ruby/gems/
(%{ruby_vendorlib})
- The rubygems package can (supposedly) be obsoleted by ruby-1.9.1's new gem
capabilities
- The same goes for rake (now also a part of the ruby-1.9.1 family).
# gem install -V --local --install-dir=/usr/share/ruby/ --force
~jmeeuwen/devel/rpmbuild/SOURCES/rack-1.0.0.gem
Installing gem rack-1.0.0
Using local gem /usr/share/ruby/cache/rack-1.0.0.gem
/usr/share/ruby/gems/rack-1.0.0/COPYING
(...long list of files removed...)
/usr/share/ruby/gems/rack-1.0.0/SPEC
/usr/share/ruby/gems/rack-1.0.0/RDOX
/usr/share/ruby/gems/rack-1.0.0/rack.gemspec
/usr/share/ruby/bin/rackup
Successfully installed rack-1.0.0
1 gem installed
Installing ri documentation for rack-1.0.0...
Updating class cache with 0 classes...
Installing RDoc documentation for rack-1.0.0...
[root@ghandalf ~]# gem list
*** LOCAL GEMS ***
# gem uninstall rack
ERROR: While executing gem ... (Gem::InstallError)
Unknown gem rack >= 0
$ ruby -rrubygems -e 'puts Gem::dir'
/usr/local/lib64/ruby/