[英]Bundler could not find compatible versions for gem “rails”: for spree
I am trying to bundle install for rails 4.0.4 with spree 2.2.2 version and i am facing following issue: 我正在尝试使用2.2.2版本的捆绑包捆绑Rails 4.0.4的安装,并且面临以下问题:
Bundler could not find compatible versions for gem "rails": In Gemfile: spree (= 2.2.2) ruby depends on spree_core (= 2.2.2) ruby depends on rails (~> 4.0.5) ruby Bundler找不到与宝石“ rails”兼容的版本:在Gemfile中:spree(= 2.2.2)ruby取决于spree_core(= 2.2.2)ruby取决于rails(〜> 4.0.5)ruby
rails (4.0.4)
In my Gemfile: 在我的Gemfile中:
gem 'spree', '2.2.2' 宝石'spree','2.2.2'
gem 'spree_gateway', :git => ' https://github.com/spree/spree_gateway.git ', :branch => '2-2-stable' gem'spree_gateway',:git =>' https://github.com/spree/spree_gateway.git',:branch =>'2-2-stable'
gem 'spree_auth_devise', :git => ' https://github.com/spree/spree_auth_devise.git ', :branch => '2-2-stable' gem'spree_auth_devise',:git =>' https://github.com/spree/spree_auth_devise.git',:branch =>'2-2-stable'
Solution for above error which i fixed : Add following gem dependencies in following way: 我修复的上述错误的解决方案:通过以下方式添加以下gem依赖项:
gem 'spree', :git => " https://github.com/spree/spree.git ", branch: '2-1-stable' gem'spree',:git =>“ https://github.com/spree/spree.git ”,分支:'2-1-stable'
gem 'spree_auth_devise', :git => " https://github.com/radar/spree_auth_devise.git ", branch: '2-1-stable' gem'spree_auth_devise',:git =>“ https://github.com/radar/spree_auth_devise.git ”,分支:'2-1-stable'
Which solve my problem , 哪个解决了我的问题,
Also you need to install nokogiri manually 另外,您需要手动安装nokogiri
gem install nokogiri -- --use-system-libraries. gem install nokogiri---use-system-libraries。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.