【问题标题】:Issue with bundle install using spree from a git clone:使用来自 git clone 的 spree 进行捆绑安装的问题:
【发布时间】:2012-05-09 16:26:56
【问题描述】:

错误消息:Bundler 找不到 gem "spree_core" 的兼容版本:

  *In Gemfile:
    spree_paypal_express (>= 0) ruby depends on
      spree_core (>= 1.0.0) ruby
    spree (= 0.50.2) ruby depends on
      spree_core (0.50.2)*

当我执行 rails --version 时,我得到:

git://github.com/shuber/sortable.git (at master) is not checked out. Please run `bundle install`

按照其他 StackOverflow 帖子的建议修改了 .bashrc 配置文件,“bundle update”给出了与上面第一个相同的错误消息。

Mac OS X Lion
Rails 3.0.7
ruby 1.8.7 (2011-02-18 patchlevel 334) [i686-darwin11.3.0], MBARI 0x6770, Ruby Enterprise Edition 2011.03

'rvm gem list bundler' 仅返回 1.1.3 和 1.1.3,在我使用此 git clone 的工作环境中,我有 bundler 1.1.3 和 1.0.22。

想法?目前还不确定该怎么做。我尝试删除 Gemfile.lock 并再次运行 bundle install ,但没有成功。

【问题讨论】:

    标签: ruby-on-rails rvm bundler spree gemfile


    【解决方案1】:

    您如何在 Gemfile 中指定 spree gem?错误消息似乎说您正在指定一个版本的“spree”(可能 = 0.50.2),而 spree_paypal_express 需要另一个版本(> = 1.0.0)。

    我对 bundler 不太熟悉,所以不能肯定。也许发布您的 Gemfile 可以帮助我们为您找到更多潜在客户?

    祝你好运!

    【讨论】:

    • 是的,我之前试图回答我自己的问题,但由于我没有代表我还不能:) 问题是当我第一次开始自己玩狂欢时,我使用了最新版本 (1 .x.x 什么的)。这个应用程序使用 0.50.2 和更高版本的全局“覆盖”正在搞砸事情。由于它是一个 git clone 和一个相当长的应用程序,我知道问题不在 Gemfile 中。刚刚从头开始并创建了一个新的 gemset。工作正常,但在 gemsets 中似乎仍然有些不对劲,idk。
    猜你喜欢
    • 2011-05-23
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2012-09-11
    • 2011-08-20
    • 2012-02-20
    相关资源
    最近更新 更多