When I upgraded to Ubuntu 10.10 Beta, my Ruby (1.9.1) and its RubyGems (and thus any loading of any external code) stopped working pretty quickly. Searching around didn’t do a bunch of help, until I stumbled upon a great entry by YAMADA Akira 4 days ago entitled “Ruby 1.9.2とRubyGems 1.3.7とGem.pathの消失”.
I’m providing a translation here for those interested, albeit a very poor one with many inaccuracies.
If you’d like a really short way to get your gem
command working again, add this line to the top of your /usr/lib/ruby/1.9.1/rubygems.rb:
Gem::QuickLoader.remove unless !defined?(Gem)
The problem is that it doesn’t actually seem to fix the issue (not on Ubuntu, anyway). While gem runs and installs things, require
is still broken. I’m continuing to investigate.
The source text is copyright to its author YAMADA Akira.
Read more