[英]RVM / downgrading bundler gem
I have the following interesting scenario: 我有以下有趣的场景:
I've install ruby 1.9.2 via RVM and it came prepackaged with bundler 1.1.4. 我已经通过RVM安装了ruby 1.9.2,它预装了bundler 1.1.4。
My application requires bundler 1.0.15. 我的应用程序需要bundler 1.0.15。
I've tried running the following: 我试过运行以下内容:
gem uninstall bundler
I get the following: 我得到以下内容:
INFO: gem "bundler" is not installed
Any thoughts how can downgrade my bundler? 有什么想法可以降级我的捆绑器?
Thanks. 谢谢。
Found the solution. 找到了解决方案。
Apparently rvm installs it's gems in the global gemspec which is visible to all gemspecs. 显然rvm在全球gemspec中安装它的宝石,这对所有gemspecs都是可见的。
So by doing: 通过这样做:
rvm use 1.9.2@global
And followed by: 然后是:
gem uninstall bundler
Does the trick. 诀窍。
This can be also shortened to: 这也可以缩短为:
rvm @global do gem uninstall bundler
Try add the following to .bash_profile 尝试将以下内容添加到.bash_profile
[[ -s "$HOME/.rvm/scripts/rvm" ]] && source "$HOME/.rvm/scripts/rvm"
Or try to link the bundle to RVM bin dir 或者尝试将捆绑包链接到RVM bin目录
ln -s ~/.rvm/gems/ruby-1.9.2-p290@fonista/bin/bundle ~/.rvm/bin/
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.