Eric Hodel
10/1/2008 6:47:00 PM
On Sep 30, 2008, at 13:25 PM, Paul Dowman wrote:
> Kevin Williams wrote:
>> Vassilis Rizopoulos wrote:
>>> Eric Hodel wrote:
>>>> Note! Some versions of RubyGems have a bug that will prevent
>>>> automatic updates. If RubyGems says it has nothing to update, run:
>>>>
>>>> $ gem install rubygems-update
>>>> $ update_rubygems
>>> Yep. Doing sudo gem update on a MacOS X 10.5.5/Ruby 1.8.6/Gem 1.2.0
>>> installation produced an error:
>>>
>>> Updating rubygems-update
>>> Successfully installed rubygems-update-1.3.0
>>> ERROR: While executing gem ... (NameError)
>>> undefined local variable or method `remote_gemspecs' for
>>> #<Gem::Commands::UpdateCommand:0x52a3b4>
>>>
>>
>> FYI - I have this error on every Ruby install I've got: Mac, Windows,
>> Linux. All are Gems 1.2.0, but some are ruby 1.9, some are 1.8.7,
>> some
>> are 1.8.6, and some are JRuby.
>
> When you install the rubygems-update gem, make sure you install the
> version that matches your current version of rubygems. The following
> will do it:
>
> gem install rubygems-update -v `gem --version`
>
> Note that the quotes are backquotes (i.e. shift plus the tilde (~) key
> on a standard US keyboard).
No.
This will leave you with whatever version of RubyGems you have, and
will not upgrade you to 1.3.0.