Bundler 1.0rc5 keeps appearing on my rvm installs…

Each time I upgrade a rvm managed ruby a fresh install of bundler 1.0.0.rc5 pops up. I still don’t know what causes this, but here are some instructions to deal with it.

The symptoms are:

As soon as you install a fresh version of a ruby (let’s say 1.9.2-p290)…

$ rvm install 1.9.2-p290
(...)

$ rvm use 1.9.2-p290
Using (...)/.rvm/gems/ruby-1.9.2-p290
$ gem list

*** LOCAL GEMS ***

bundler (1.0.0.rc.5)
rake (0.9.2)
rdoc (3.8)

So the dreaded old version of bundler is already installed.

Let’s try to uninstall it:

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

Maybe rvm didn’t understand bundler’s version… (/sarcasm)

$ gem uninstall bundler -v 1.0.0.rc.5
ERROR:  While executing gem ... (Gem::InstallError)
    cannot uninstall, check `gem list -d bundler`

Well lets do what rvm uninstall suggests:

$ gem list -d bundler

*** LOCAL GEMS ***

bundler (1.0.0.rc.5)
    Authors: Carl Lerche, Yehuda Katz, André Arko
    Rubyforge: http://rubyforge.org/projects/bundler
    Homepage: http://gembundler.com
    Installed at: /Users/lmfr/.rvm/gems/ruby-1.9.2-p290@global

    The best way to manage your application's dependencies

Funny… nothing helpful here… After googling for a while (and, no, google, I don’t mean “+rvm +install bundler 1.0.0.rc.5”), some solutions appear:

$ rvm gemset use global

$ gem uninstall bundler -v 1.0.0.rc.5
Remove executables:
	bundle

in addition to the gem? [Yn]  y
Removing bundle
Successfully uninstalled bundler-1.0.0.rc.5

Just to verify it:

$ gem list

*** LOCAL GEMS ***

rake (0.9.2)
rdoc (3.8)

Bonus points for style: If you are asking other other rubies suffer from the same problem in your install just run on your home directory:

$ find .rvm -name 'bundler-1.0.0.rc.5'
.rvm/gems/rbx-head@global/doc/bundler-1.0.0.rc.5
.rvm/gems/rbx-head@global/gems/bundler-1.0.0.rc.5

Proceed as described above for each bundler you find.

References:

http://answerpot.com/showthread.php?1520789-Desinstalando+bundler+pre
http://lists.simplelogica.net/pipermail/ror-es/2010-October/024332.html
 
  1. pi-pixel posted this