From: David Brodbeck Date: 2009-10-10T07:14:42+09:00 Subject: Re: Difficulty updating Ruby Gems in a non-standard location On Oct 8, 2009, at 3:39 PM, David Brodbeck wrote: > On Oct 8, 2009, at 2:43 PM, spox wrote: > >>> Unfortunately, that failed in the same way "gem update --system" did >>> -- it ignored $GEM_PREFIX and tried to install gem under /usr/bin/ >>> gem. The gem installation in /opt/ruby-gems was left untouched. >> >> Using the source you downloaded, make sure that GEM_HOME is >> exported, then run >> setup with the prefix to the install location: >> >> ruby setup.rb --prefix=/opt/ruby-gems > > That went to the right place, but now gem is broken: > > $ gem > /opt/ruby-gems/bin/gem:14: undefined method `ruby_version' for > Gem:Module (NoMethodError) I finally figured it out. I had two copies under ruby-gems, a new one in /opt/ruby-gems/lib and an old one in /opt/ruby-gems/lib/site_ruby/ 1.8. I deleted the latter and it seems to be working now. Thanks to everyone for their help. -- David Brodbeck System Administrator, Linguistics University of Washington