Bundler using old version

天涯浪子 提交于 2019-12-11 00:05:51

问题


I am using Bundler for my Rails application. When I list installed bundler gems it lists 1.4.0.pre.1 and 1.3.15 and running bundler -v yields 1.4.0.pre.1 (which is what i want).

However, when I try to run my application it says current bundler version is 1.0.15. This version is not installed as a gem and I cannot figure out how to remove it (gem uninstall bundler -v 1.0.15 wont work since this version is not installed as a gem).

I have tried updating and installing new versions, but nothing is working. Please help, I've been stuck for hours. Thank you.


回答1:


Try running:

$ which -a bundle

This will tell you the location of all the instances of bundler found on your computer.

From there, you should be able to locate the offending version of bundler and uninstall it.




回答2:


This worked for me when using vagrant

[vagrant@precise32:/vagrant (master)]$ sudo gem install bundler
Fetching: bundler-1.11.2.gem (100%)
Successfully installed bundler-1.11.2
1 gem installed



回答3:


try running this on you app console:

bundle update


来源:https://stackoverflow.com/questions/18194091/bundler-using-old-version

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!