【问题标题】:Bundler could not find compatible versions for gem "rails": for spreeBundler 找不到 gem "rails" 的兼容版本:用于狂欢
【发布时间】:2014-07-30 22:28:03
【问题描述】:

我正在尝试将 rails 4.0.4 与 spree 2.2.2 版本捆绑安装,我面临以下问题:

Bundler 找不到 gem "rails" 的兼容版本: 在 Gemfile 中: spree (= 2.2.2) 红宝石取决于 spree_core (= 2.2.2) 红宝石取决于 rails (~> 4.0.5) 红宝石

rails (4.0.4)

在我的 Gemfile 中:

宝石'狂欢','2.2.2'

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'

【问题讨论】:

    标签: ruby-on-rails ruby-on-rails-4 spree


    【解决方案1】:

    我已修复的上述错误的解决方案: 通过以下方式添加以下 gem 依赖项:

    gem 'spree', :git => "https://github.com/spree/spree.git", branch: '2-1-stable'

    gem 'spree_auth_devise', :git => "https://github.com/radar/spree_auth_devise.git", 分支: '2-1-stable'

    这解决了我的问题,

    另外你需要手动安装 nokogiri

    gem install nokogiri -- --use-system-libraries.

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2022-08-14
      • 2011-10-31
      • 1970-01-01
      • 2013-06-30
      • 2019-03-28
      • 2023-03-14
      相关资源
      最近更新 更多