From: cnjohnson Date: 2009-01-01T06:30:45+09:00 Subject: Re: Problem with "gem cleanup" on OS X 10.5 Ken McDonald wrote: > > When I try to execute 'sudo gem cleanup' on OS X 10.5, I get the > message: > > Attempting to uninstall rails-1.2.6 > ERROR: While executing gem . . . (Gem:InstallError) > Unknown gem rails = 1.2.6 > > How can I fix this so gem cleanup will continue to completion? > You can search for the offending gem with %gem list -d sqlite3 On OS X you will get back something akin to *** LOCAL GEMS *** sqlite3-ruby (1.2.4, 1.2.1) Author: Jamis Buck Homepage: http://sqlite-ruby.rubyforge.org/sqlite3 Installed at (1.2.4): /Library/Ruby/Gems/1.8 (1.2.1): /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/gems/1.8 SQLite3/Ruby is a module to allow Ruby scripts to interface with a SQLite3 database. You may now uninstall the offending gem with %gem uninstall --install-dir System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/gems/1.8 sqlite3 So, in general gem list -d will get you the location of the gem, and gem uninstall --install-dir will uninstall the gem. HTH Charles -- View this message in context: http://www.nabble.com/Problem-with-%22gem-cleanup%22-on-OS-X-10.5-tp20389268p21237183.html Sent from the ruby-talk mailing list archive at Nabble.com.