【问题标题】:'bundle update' reporting gems with no compatible version, with contradicting version requirements没有兼容版本的“捆绑更新”报告 gem,版本要求相互矛盾
【发布时间】:2011-09-18 23:37:32
【问题描述】:

'bundle update' 给了我一些非常奇怪的错误。 arel、activemodel 和 rack 在下面列出,因为它们没有兼容的版本。每个都列出了两次,版本要求相互矛盾:

$ bundle update
Updating https://github.com/bborn/communityengine.git
Updating https://github.com/bborn/authlogic.git
Updating https://github.com/paneq/calendar_date_select.git
Fetching source index for http://rubygems.org/
Bundler could not find compatible versions for gem "arel":
  In Gemfile:
    community_engine (= 2.0.0.beta) depends on
      arel (~> 2.1.1)

    community_engine (= 2.0.0.beta) depends on
      arel (2.2.1)

Bundler could not find compatible versions for gem "activemodel":
  In Gemfile:
    community_engine (= 2.0.0.beta) depends on
      activemodel (= 3.1.0.beta1)

    community_engine (= 2.0.0.beta) depends on
      activemodel (3.1.0.rc2)

Bundler could not find compatible versions for gem "rack":
  In Gemfile:
    community_engine (= 2.0.0.beta) depends on
      rack (= 1.3.2)

    community_engine (= 2.0.0.beta) depends on
      rack (1.3.3)

gem list 显示安装了合适的版本:

rack (1.3.3, 1.3.2)
arel (2.2.1, 2.1.1)
activemodel (3.1.0, 3.1.0.rc2, 3.1.0.beta1)

它变得更加陌生。将我的 Gemfile 中的 3 个额外的 gem 行从末尾移动到中间(在 'source' 和 'gem rails' 行之后)会更改捆绑报告的错误:

Bundler could not find compatible versions for gem "actionpack":
  In Gemfile:
    rails (= 3.1.0) depends on
      actionpack (= 3.1.0)

    community_engine (= 2.0.0.beta) depends on
      actionpack (3.1.0.rc2)

Bundler could not find compatible versions for gem "rack":
  In Gemfile:
    community_engine (= 2.0.0.beta) depends on
      rack (= 1.3.2)

    community_engine (= 2.0.0.beta) depends on
      rack (1.3.3)

community_engine gem 在这里肯定是可疑的,我也在他们的论坛上寻求答案。但是打包程序中出现的这种奇怪的错误需要询问更广泛的受众。

各位,有什么建议吗? 谢谢!

【问题讨论】:

    标签: ruby-on-rails rubygems bundler


    【解决方案1】:

    FWIW,在 community_engine 的 README.markdown (https://github.com/bborn/communityengine/blob/master/README.markdown) 上,它说:

    要求:

    • RAILS 版本 2.3.4(尚不支持更高版本)

    但您似乎正在尝试使用 Rails 3.1?

    【讨论】:

    • 很好,但这是主分支。我正在使用 rails3 分支。
    猜你喜欢
    • 2017-06-12
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2015-07-26
    • 2021-04-11
    • 1970-01-01
    相关资源
    最近更新 更多