简体   繁体   English

Bundler找不到与宝石“ rails”兼容的版本:大礼包

[英]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.

相关问题 Bundler找不到与宝石spree_core兼容的版本(Spree Ruby on Rails) - Bundler could not find compatible versions for gem spree_core (Spree Ruby on Rails) rails错误Bundler找不到与宝石宝石“ spree_backend”兼容的版本 - rails error Bundler could not find compatible versions for gem gem “spree_backend” Spree Commerce安装错误,Bundler找不到gem“rails”的兼容版本 - Spree Commerce installation error, Bundler could not find compatible versions for gem “rails” Ruby 导轨错误:捆绑器找不到 gem“捆绑器”的兼容版本: - Ruby rails error: Bundler could not find compatible versions for gem "bundler": Bundler 找不到 gem“bundler”的兼容版本: - Bundler could not find compatible versions for gem "bundler": Bundler找不到宝石“ bundler”的兼容版本 - Bundler could not find compatible versions for gem “bundler” ActiveAdmin with Rails 4:Bundler找不到宝石“ rails”的兼容版本 - ActiveAdmin with Rails 4: Bundler could not find compatible versions for gem “rails” Bundler无法找到gem的兼容版本,更新了Rails app - Bundler could not find compatible versions for gem, updating Rails app RoR-Bundler找不到与宝石“ rails”兼容的版本 - RoR - Bundler could not find compatible versions for gem “rails” Bundler 安装 - 找不到 gem“actionpack”的兼容版本 - Rails 5 - Bundler install - could not find compatible versions for gem "actionpack" - Rails 5
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM