在我的mac上更新gem - 安装了两个版本的bundler [英] Updating gems on my mac - two versions of bundler installed
问题描述
gem list
.....
bundler( 1.1.3,1.0.22)
我不知道为什么1.0.22仍然存在,我无法弄清楚如何摆脱它!
$ gem cleanup
清理已安装的宝石。 ..
试图卸载bundler-1.0.22
无法卸载bundler-1.0.22:
Gem :: InstallError:未安装gembundler
清理完成
$ gem uninstall bundler-1.0.22
INFO:未安装gembundler-1.0.22
更新1
Andrew所要求的路径信息
/Users/brandon/.rvm/gems/ruby-1.9.3-p125-perf@global/gems/bundler-1.0.22/
最可能发生的情况是Bundler的两个版本安装在两个不同的gemset中,其中一个从ot她的。 1.0.22
可能安装在全局
gemset中( rvm use @global
)或rootgemset( rvm use< ruby_version>
)。在安装了 1.0.22
的gemset后,您应该可以使用 gem uninstall bundler
。
I had tons of gems on my local machine which I were installed before and after RVM, so I decided to wipe them all and reinstall. Everything seemed to go ok, except bundler:
gem list
.....
bundler (1.1.3, 1.0.22)
I don't know why 1.0.22 is still there, and I can't figure out how to get rid of it!
$ gem cleanup
Cleaning up installed gems...
Attempting to uninstall bundler-1.0.22
Unable to uninstall bundler-1.0.22:
Gem::InstallError: gem "bundler" is not installed
Clean Up Complete
$ gem uninstall bundler-1.0.22
INFO: gem "bundler-1.0.22" is not installed
UPDATE 1 Path info as requested by Andrew
/Users/brandon/.rvm/gems/ruby-1.9.3-p125-perf@global/gems/bundler-1.0.22/
What's most likely happening is that the two versions of Bundler are installed in two different gemsets, one of which is inheriting from the other. 1.0.22
is probably installed in the global
gemset (rvm use @global
), or "root" gemset (rvm use <ruby_version>
). Once you're in the gemset that has 1.0.22
installed, you should be able to remove it with gem uninstall bundler
.
这篇关于在我的mac上更新gem - 安装了两个版本的bundler的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!