[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

comp.lang.ruby

gem update --system broke rubygems?

Bill Kelly

2/11/2007 1:24:00 AM

Hi,

I'm running ruby 1.8.5 (2006-08-25) [i686-linux]

I tried:

gem update --system

And, at the end of the install, got the following error:

Successfully built RubyGem
Name: sources
Version: 0.0.1
File: sources-0.0.1.gem
hook /opt/lib/ruby/gems/1.8/gems/rubygems-update-0.9.2/./post-install.rb failed:
undefined method `post_install_message' for #<Gem::Specification:0x49ba176c>
Try 'ruby setup.rb --help' for detailed usage.
RubyGems system software updated


Now, subsequent invocations of `gem` produce the following error:

gem list --remote > gems.txt
ERROR: While executing gem ... (NoMethodError)
undefined method `refresh' for #<Hash:0x55d0d2d4>

gem update --system
Updating RubyGems...
ERROR: While executing gem ... (NoMethodError)
undefined method `refresh' for #<Hash:0x5364d414>


Anyone else experienced this?

I'll try reinstalling rubygems from source..


Regards,

Bill


3 Answers

Austin Ziegler

2/11/2007 1:32:00 AM

0

On 2/10/07, Bill Kelly <billk@cts.com> wrote:
> Now, subsequent invocations of `gem` produce the following error:
>
> gem list --remote > gems.txt
> ERROR: While executing gem ... (NoMethodError)
> undefined method `refresh' for #<Hash:0x55d0d2d4>
>
> gem update --system
> Updating RubyGems...
> ERROR: While executing gem ... (NoMethodError)
> undefined method `refresh' for #<Hash:0x5364d414>

Something has gone bonkers with your source cache. Mine is in
~/.gem/source_cache on OS X. Remove that and you should be able to
work again.

-austin
--
Austin Ziegler * halostatue@gmail.com * http://www.halo...
* austin@halostatue.ca * http://www.halo...feed/
* austin@zieglers.ca

Bill Kelly

2/11/2007 1:34:00 AM

0


> I'll try reinstalling rubygems from source..

Rats... the reinstall from source appeared to complete without
errors, but I still get:

gem list --remote > gems.txt
ERROR: While executing gem ... (NoMethodError)
undefined method `refresh' for #<Hash:0x4edb22b8>


Regards,

Bill



Bill Kelly

2/11/2007 1:41:00 AM

0

From: "Austin Ziegler" <halostatue@gmail.com>
> On 2/10/07, Bill Kelly <billk@cts.com> wrote:
>> Now, subsequent invocations of `gem` produce the following error:
>>
>> gem list --remote > gems.txt
>> ERROR: While executing gem ... (NoMethodError)
>> undefined method `refresh' for #<Hash:0x55d0d2d4>
>>
>> gem update --system
>> Updating RubyGems...
>> ERROR: While executing gem ... (NoMethodError)
>> undefined method `refresh' for #<Hash:0x5364d414>
>
> Something has gone bonkers with your source cache. Mine is in
> ~/.gem/source_cache on OS X. Remove that and you should be able to
> work again.

Thanks Austin, that fixed it!

(Mine was in: /opt/lib/ruby/gems/1.8/source_cache )



Regards,

Bill