我有以下gemfile:
source 'http://rubygems.org'
source 'http://gems.engineyard.com'
gem 'rails', '~> 3.1.0.rc4'
gem 'sass-rails', :git => 'https://github.com/rails/sass-rails.git'
gem 'compass', :git => 'https://github.com/chriseppstein/compass.git', :branch => 'rails31'
gem 'fancy-buttons'
gem 'haml'
gem 'authlogic', :git => 'https://github.com/AndreasWurm/authlogic.git'#, :branch => 'rails3'
gem 'nokogiri'
gem 'bundler'
gem 'resque'
gem 'resque-meta'
gem 'jquery-rails'
gem 'rake', '~> 0.8.7'
gem 'eventmachine'
gem 'em-websocket'
gem 'json'
gem 'coffee-script'
gem 'uglifier'
每当我运行bundle install时,都会收到以下错误:
Bundler could not find compatible versions for gem "railties":
In Gemfile:
sass-rails depends on
railties (~> 3.2.0.beta)
rails (~> 3.1.0.rc4) depends on
railties (3.1.0.rc4)
有人可以建议解决方案吗?
答案 0 :(得分:4)
删除或注释掉以下内容:
# , :git => 'https://github.com/rails/sass-rails.git'
说明:自从Rails 3.1的最后一个候选版本发布以来已经有一段时间了,已经发布了一个与3.1一起使用的sass-rails gem,所以不需要从git和sass-rails master中提取sass-rails现在正期待着Rails 3.2。
答案 1 :(得分:1)
尝试捆绑更新,这对我有用...也许删除所有宝石,先更新rails,然后再放回宝石并再次运行捆绑更新?