casionwoo@casionwoo-desktop:~/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)
我正在安装spree进行设置我不知道为什么会出现此错误
答案 0 :(得分:0)
将您的Gemfile上的gem 'rails', '4.0.0'
更改为gem 'rails', '~> 3.2.8'
。没有稳定版的Spree与Rails 4兼容。
PS:之后您可能需要运行bundle update rails
。
答案 1 :(得分: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源代码。
答案 2 :(得分:0)
狂欢版
gem'spree','〜> 3.0.8'
gem'spree_gateway','〜> 3.0.0'
gem'spree_auth_devise','〜> 3.0.0'
与
gem'trail','4.2.6'