【发布时间】: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