2013-06-26 104 views
0
[email protected]:~/mystore$ bundle install 
Updating https://github.com/spree/spree_gateway.git 
Updating https://github.com/spree/spree_auth_devise.git 
Fetching gem metadata from https://rubygems.org/....... 
Fetching gem metadata from https://rubygems.org/.. 
Resolving dependencies... 
Bundler could not find compatible versions for gem "rails": 
    In Gemfile: 
    spree (= 2.0.3) ruby depends on 
     rails (~> 3.2.8) ruby 

    rails (4.0.0) 

我對設置,我不知道安裝大禮包爲什麼這個錯誤發生在你的Gemfile施普雷電子商務安裝

回答

0
source 'https://rubygems.org' 

# Bundle edge Rails instead: gem 'rails', github: 'rails/rails' 
gem 'rails', '3.2.8' 
# 3.2.4.rc1 

# Use sqlite3 as the database for Active Record 
gem 'sqlite3' 

# Use SCSS for stylesheets 
gem 'sass-rails', '~> 4.0.0' 

# Use Uglifier as compressor for JavaScript assets 
gem 'uglifier', '>= 1.3.0' 

# Use CoffeeScript for .js.coffee assets and views 
gem 'coffee-rails', '~> 4.0.0' 

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

# Use jquery as the JavaScript library 
gem 'jquery-rails' 

# Turbolinks makes following links in your web application faster. Read more:  https://github.com/rails/turbolinks 
gem 'turbolinks' 

# Build JSON APIs with ease. Read more: https://github.com/rails/jbuilder 
gem 'jbuilder', '~> 1.2' 

group :doc do 
# bundle exec rake doc:rails generates the API under doc/api. 
gem 'sdoc', require: false 
end 

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

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

# Use Capistrano for deployment 
# gem 'capistrano', group: :development 

# Use debugger 
# gem 'debugger', group: [:development, :test] 

gem 'spree', '2.0.3' 
gem 'spree_gateway', :git => 'https://github.com/spree/spree_gateway.git', :branch =>  '2-0-stable' 
gem 'spree_auth_devise', :git => 'https://github.com/spree/spree_auth_devise.git',  :branch => '2-0-stable' 

這是我的Gemfile源代碼。

0

變化gem 'rails', '4.0.0'gem 'rails', '~> 3.2.8'。目前還沒有與Rails 4兼容的Spree穩定版本。 PS:您可能需要在運行後再運行bundle update rails

+0

導軌(= 3.2.8)紅寶石取決於 railties(= 3.2.8)紅寶石 sass-rails(〜> 4.0.0)ruby取決於這個錯誤再次發生你知道爲什麼嗎? railties(4.0.0) –

0

施普雷版本

寶石 '狂歡', '〜> 3.0.8'
寶石 'spree_gateway', '〜> 3.0.0'
寶石 'spree_auth_devise', '〜> 3.0.0'


寶石兼容 '軌道', '4.2.6'