失踪的宝石可以

时间:2012-06-06 01:50:04

标签: ruby-on-rails ruby ruby-on-rails-3 ruby-on-rails-3.1 rubygems

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版本

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)

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

1 个答案:

答案 0 :(得分:0)

使用当前的组合捆绑器无法同时为rails和jquery-rails找到匹配的railties版本。

<强>解决方案

或者:

gem 'jquery-rails', '2.0.1'

或者:

gem 'jquery-rails', '~> 2.0.1'