時當我嘗試捆紮機找不到兼容版本的寶石「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