1
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.5)

我在尝试“捆绑安装”时收到该错误消息,这是我的 gemfile

source 'https://rubygems.org'

gem 'rails', '3.2.3'

# Bundle edge Rails instead:
# gem 'rails', :git => 'git://github.com/rails/rails.git'

group :development do
    gem 'sqlite3', '1.3.5'
end

gem 'json'

# 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.1'


  # See https://github.com/sstephenson/execjs#readme for more supported runtimes
  # gem 'therubyracer', :platform => :ruby

  gem 'uglifier', '>= 1.2.3'
end

gem 'jquery-rails', '2.0.0'

# To use ActiveModel has_secure_password
# gem 'bcrypt-ruby', '~> 3.0.0'

# To use Jbuilder templates for JSON
# gem 'jbuilder'

# Use unicorn as the app server
# gem 'unicorn'

# Deploy with Capistrano
# gem 'capistrano'

# To use debugger
# gem 'ruby-debug'

这是红宝石版本

ruby 1.8.7 (2011-06-30 patchlevel 352) [x86_64-linux]

在所有这些之前,我的“捆绑检查”会导致以下缺失的宝石

The following gems are missing
 * tilt (1.3.3)
 * mime-types (1.18)
 * mail (2.4.4)
 * sass-rails (3.2.5)

有人可以帮我解决这个小问题。谢谢

4

1 回答 1

0

With the current combination bundler can't find a matching version of railties for both rails and jquery-rails at the same time.

Solution

Either:

gem 'jquery-rails', '2.0.1'

Or:

gem 'jquery-rails', '~> 2.0.1'
于 2012-06-06T02:05:57.330 回答