时当我尝试捆扎机找不到兼容版本的宝石“railties”使用BitPay和狂欢商务部
bundle install
我得到的错误:
Bundler could not find compatible versions for gem "railties":
In Gemfile:
spree_bitpay (>= 0) ruby depends on
spree_auth_devise (>= 0) ruby depends on
devise (~> 2.0.4) ruby depends on
railties (~> 3.1) ruby
spree_bitpay (>= 0) ruby depends on
rails (= 4.0.9) ruby depends on
railties (4.0.9)
我已经试过2个版本的我Gemfile,一个我拥有标准Gemfile加上bitpay行的地方,另一个是我拥有所有其他gem注释的地方,只是bitpay行,两者都不起作用。
的Gemfile:
source 'https://rubygems.org'
# Bundle edge Rails instead: gem 'rails', github: 'rails/rails'
gem 'rails', '4.0.9'
# Use sqlite3 as the database for Active Record
gem 'sqlite3'
# Use SCSS for stylesheets
gem 'sass-rails', '~> 4.0.2'
# 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', '~> 3.1.7'
# 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_bitpay', :git => 'https://github.com/bitpay/spree-bitpay.git'
我是新来的Ruby和Gemfiles等感谢=)
做 '宝石列表' 我可以看到,我都需要的版本: railties(4.1 .8,4.0.12,4.0.9,3.1.0)
删除需要'Gemfile'的版本只剩下'gem'rails''并再次运行'bundle install' – 2014-12-09 11:32:11
错误仍然显示:Bundler无法找到适用于gem“railties”的兼容版本:在Gemfile中:spree_bitpay(> = 0 )ruby取决于spree_auth_devise(> = 0)ruby取决于devise(〜> 2.0.4)ruby取决于railties(〜> 3.1)ruby spree_bitpay(> = 0)ruby取决于rails(= 4.0.9) railties(4.0.9) – Drew 2014-12-09 11:44:30
你是否已经尝试过运行'bundle update'? – wisew 2014-12-09 14:10:24