Oops, my RubyGems broke!
Ok, not really, but I was getting a weird error and I bet others are to. Are you seeing this when you try to install a new gem?
ERROR: While executing gem … (NoMethodError)
>> undefined method `refresh’ for #
If so, you may be having the same trouble I was: something buggy in your gem source cache. To fix it, find out where your source cache is (mine was at /opt/local/ruby/gems/1.8/source_cache, yours might be in /opt/lib/ruby/gems/1.8/source_cache or in ~/.gem/source_cache) and delete it. Then you run sudo gem update –system and you should be good to go!
Comments (2 comments)
Yeah… deleting the cache works.
To find out where your cache is easily… just type:
sudo gem env
your cache will be located:
(value of) GEM PATH + source_cache
Jake Good / February 14th, 2007, 1:23 pm / #
Yeah it happened to me the other day as well… Took me a couple of hours to figure it out.
Ismael / July 10th, 2007, 12:08 pm / #
Post a comment