strapyourself.in and flouri.sh

RubyGems 0.91 and the "refresh" error

February 24th, 2007

All of us over at ELCTech recently upgraded to RubyGems 0.91, only to find the following error during "gem" operations:

$ sudo gem install acts_as_ferret
ERROR:  While executing gem ... (NoMethodError)
    undefined method `refresh' for #<Hash:0x127c854>

Apparently the format of the gem cache files have changed, the new version cannot read some older versions of the cache. To fix this problem, delete your source_cache files in the following locations:

sudo rm /usr/local/lib/ruby/gems/1.8/source_cache
rm ~/.gem/source_cache

Looks like someone forgot to think about us old folks with ancient versions of RubyGems. In the future, I'll plan on running "gem update --system" more often!

Originally posted on ELC

Sorry, comments are closed for this article.

original design by gorotron ported by railsgrunt powered by mephisto