juretta.com

undefined method `refresh' for # April 13, 2007
Tags: Gems Ruby
Are you getting the following error while trying to use the "gem" command?
undefined method `refresh' for #<Hash...
Solution: Delete your source_cache files!

These files are located in your local ~/.gem and in your system gem directory.

You can print your system gem directory using the "gem env g" command.

powermac:~ sts$ gem env g
/usr/local/lib/ruby/gems/1.8
You might want to run: [sudo] gem update --system in order to get the latest rubygems release.


About

This is the defunct blog of Stefan Saasen.