[Rubygems-developers] Gem not found w/ no source cache file

Nick Sieger nicksieger at gmail.com
Fri Jun 1 17:18:43 EDT 2007

Some of you may know about this longstanding issue (at least since
0.9.2), where a clean, initial install with no pre-existing
source_cache file causes no gems to be found:


$ sudo rm /usr/lib/ruby/gems/1.8/source_cache
$ sudo gem install rake
Bulk updating Gem source index for: http://gems.rubyforge.org
ERROR:  While executing gem ... (Gem::GemNotFoundException)
    Could not find rake (> 0) in any repository

I found a simple solution to this, and the patch is attached.  It's
also in the tracker issue, but I don't know how often tracker is
checked.  Explanation in the tracker.


More information about the Rubygems-developers mailing list