Bundler 没有自我意识:声称版本为 0.0.1,但实际上是 1.0.18

发布于 2024-12-05 22:38:25 字数 710 浏览 0 评论 0原文

编辑:

我是个白痴——我找出了问题所在。在我不久前编写的 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

秉烛思 2024-12-12 22:38:25

您的 bundle 可执行文件是否有可能仍然指向旧版本的 gem?

Could it be possible that your bundle executable is still pointing to an old version of the gem?

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文