我正在尝试在我的捆绑包中添加searchlogic 2.5.5和rails 2.3.5。这是我的Gemfile
source :rubygems
gem "activerecord", ">= 2.3.5"
gem "prawn", "0.6.3"
gem "searchlogic", "2.5.5"
gem "declarative_authorization", "0.5.2"
gem "test-unit", "1.2.3"
gem "hoe", "1.5.1"
gem "rake", "0.8.7"
gem "rails", "2.3.5"
但每当我尝试执行
时bundle install
它说
Bundler could not find compatible versions for gem "activerecord":
In Gemfile:
searchlogic (= 2.5.5) depends on
activerecord (~> 2.3.11)
rails (= 2.3.5) depends on
activerecord (2.3.5)
是否可以安装2个版本的activerecord?
答案 0 :(得分:0)
我有点像RoR新手,所以我可能错了,但我不这么认为。我知道rvm你可以制作不同的宝石,但那不是你想要的。
您无法升级Rails或downgrade searchlogic而无法升级?
"rails", "~> 2.3.11"
或
gem "searchlogic", "2.4.28"