在我的mac上更新gem - 安装了两个版本的bundler [英] Updating gems on my mac - two versions of bundler installed

查看:602
本文介绍了在我的mac上更新gem - 安装了两个版本的bundler的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在我的本地机器上安装了大量的宝石,这些宝石是我在RVM之前和之后安装的,因此我决定将它们全部擦拭并重新安装。除了bundler,一切似乎都没有问题:

  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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆