gem update --system broke rubygems?

B

Bill Kelly

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
 
A

Austin Ziegler

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
 
B

Bill Kelly

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
 
B

Bill Kelly

From: "Austin Ziegler said:
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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,965
Messages
2,570,148
Members
46,710
Latest member
FredricRen

Latest Threads

Top