我当地的宝石是:捆扎机找不到宝石的兼容版本
actionmailer (3.2.4.rc1, 3.2.3)
actionpack (3.2.4.rc1, 3.2.3)
activemodel (3.2.4.rc1, 3.2.3)
activerecord (3.2.4.rc1, 3.2.3)
activeresource (3.2.3)
activesupport (3.2.4.rc1, 3.2.3)
arel (3.0.2)
builder (3.0.0)
bundler (1.1.3)
coffee-script-source (1.3.3)
erubis (2.7.0)
hike (1.2.1)
i18n (0.6.0)
journey (1.0.3)
json (1.7.3)
mail (2.4.4)
mime-types (1.18)
multi_json (1.3.6)
polyglot (0.3.3)
rack (1.4.1)
rack-cache (1.2)
rack-ssl (1.3.2)
rack-test (0.6.1)
rails (3.2.3)
railties (3.2.4.rc1, 3.2.3)
rake (0.9.2.2)
rdoc (3.12)
rubygems-bundler (1.0.2)
rvm (1.11.3.3)
sprockets (2.1.3)
thor (0.14.6)
tilt (1.3.3)
treetop (1.4.10)
tzinfo (0.3.33)
而且我的Gemfile看起来像:
source 'https://rubygems.org'
gem 'rails', '3.2.3'
group :development, :test do
gem 'sqlite3' ,'1.3.6'
gem 'rspec-rails', '2.10.0'
end
# Gems used only for assets and not required
# in production environments by default.
group :assets do
gem 'sass-rails', '3.2.4'
gem 'coffee-rails', '3.2.2'
gem 'uglifier', '1.2.3'
end
gem 'jquery-rails' ,'2.0.0'
group :test do
gem 'capybara' , '1.1.2'
end
group :production do
gem 'pg' , '0.12.2'
end
但对bundle install --without production
执行,我得到
Bundler could not find compatible versions for gem "railties":
In Gemfile:
rails (= 3.2.3) ruby depends on
railties (= 3.2.3) ruby
jquery-rails (= 2.0.0) ruby depends on
railties (3.2.4.rc1)
即使我可以在本地gem中看到railties 3.2.3和3.2.4.rc1,为什么bundle无法安装jque ry-rail 2.0.0。为什么当我已经安装了这个版本时,它问我Rails 3.2.3?
那么基于rubygems.org,jquery的护栏(2.0.0)具有以下运行时间的依赖关系,运行时依赖 railties < 5.0, > = 3.2.0.beta 托尔〜> 0.14 这两个条件的被满足由我的系统上的宝石。那么为什么当我打包安装时不安装jquery-rails(2.0.0)? –