'捆绑更新'给了我一些非常奇怪的错误。 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'行之后)改变了bundle报告的错误:
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)
社区发动机的宝石在这里肯定是可疑的,我也在他们的论坛上寻求答案。但捆绑者的这种奇怪错误要求更广泛的受众。
任何建议,伙计们? THX!
答案 0 :(得分:0)
FWIW,在community_engine的README.markdown(https://github.com/bborn/communityengine/blob/master/README.markdown)上,它说:
要求:
- RAILS VERSION 2.3.4(尚不支持更高版本)
但看起来你正试图使用Rails 3.1?