Bundler 没有自我意识:声称版本为 0.0.1,但实际上是 1.0.18
编辑:
我是个白痴——我找出了问题所在。在我不久前编写的 gem 中,我有 VERSION='0.0.1'
,并且由于某种原因覆盖了捆绑程序的版本号。
不会再这样做了...
一些背景信息:在 OS X Lion 计算机上,我在 Rails 3.0.7 项目上使用带有 Macruby 的 RVM。我将 Macruby 和我当前的宝石集设置为默认值。当我尝试运行捆绑安装时,收到以下消息:
Bundler could not find compatible versions for gem "bundler":
In Gemfile:
bundler (~> 1.0)
Current Bundler version:
bundler (0.0.1)
Your version of Bundler is older than the one requested by the Gemfile.
Perhaps you need to update Bundler by running `gem install bundler`.
当我运行 gem list bundle
时,它仅显示版本 1.0.18 的一个安装。我怀疑 RVM 默认设置并没有在整个系统中得到应用。但系统 ruby 没有安装任何捆绑器,更不用说这个难以捉摸的 0.0.1。
有人知道这里会发生什么吗?
EDIT:
I'm an idiot -- I figured out the problem. In a gem I had written a while back, I had VERSION='0.0.1'
, and for some reason that overrode the version number of bundler.
Won't do that again...
Some background information: on an OS X Lion computer I'm using RVM with Macruby on a Rails 3.0.7 project. I set Macruby and my current gemset to be the default. When I try to run bundle install, I get the following message:
Bundler could not find compatible versions for gem "bundler":
In Gemfile:
bundler (~> 1.0)
Current Bundler version:
bundler (0.0.1)
Your version of Bundler is older than the one requested by the Gemfile.
Perhaps you need to update Bundler by running `gem install bundler`.
When I run gem list bundle
, it shows exactly one installation at version 1.0.18. I suspect that somehow the RVM default setting is not applied all the way through the system. But the system ruby does not have any bundler installed, much less this elusive 0.0.1.
Anybody know what might be going on here?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您的
bundle
可执行文件是否有可能仍然指向旧版本的 gem?Could it be possible that your
bundle
executable is still pointing to an old version of the gem?