Wednesday, July 27, 2011

uninstalling rake 0.9.2

gem uninstall rake
ERROR: While executing gem ... (Gem::InstallError)
cannot uninstall, check `gem list -d rake`

1) gem list -d rake

gives:

*** LOCAL GEMS ***

rake (0.9.2, 0.8.7)
Author: Jim Weirich
Rubyforge: http://rubyforge.org/projects/rake
Homepage: http://rake.rubyforge.org
Installed at (0.9.2): /Users/bparanj/.rvm/gems/ruby-1.9.2-p180@global
(0.8.7): /Users/bparanj/.rvm/gems/ruby-1.9.2-p180@global

2) rvm use @global && gem uninstall rake -v 0.9.2

uninstalls rake