1. Skip to navigation
  2. Skip to content

The ELC Community Blog

A knowledge exchange on Ruby on Rails and Agile Development


RubyGems 0.91 and the "refresh" error

by stevend on February 24, 2007

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

   1  $ sudo gem install acts_as_ferret
   2  ERROR:  While executing gem ... (NoMethodError)
   3      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:

   1  sudo rm /usr/local/lib/ruby/gems/1.8/source_cache
   2  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!

Comments

Add a comment


home | services | Ruby on Rails Development | code | blog | company