【问题标题】:Install Spree with rails 4.1.2 on Ubuntu 13.04在 Ubuntu 13.04 上使用 rails 4.1.2 安装 Spree
【发布时间】:2014-09-24 12:26:59
【问题描述】:

我一直在尝试按照 guides.spreecommerce.com/developer/getting_started_tutorial.html 上的入门指南中的说明安装 spree

$ rails 4.1.2 new mystore
$ cd mystore

没有问题。当我跑步时

$ spree install --auto-accept

我明白了:

gemfile 大礼包 gemfile spree_gateway gemfile spree_auth_devise 从“。”运行捆绑安装 git 源 //github/spree/spree_gateway.git 尚未签出。请在尝试启动您的应用程序之前运行 bundle install

我跑了

:~/mystore$ bundle install

Updating github/spree/spree_gateway.git
Updating github/spree/spree_auth_devise.git
Fetching gem metadata from //rubygems.org/.........
Fetching additional metadata from //rubygems.org/..
Resolving dependencies..................................
Bundler could not find compatible versions for gem "rails":

在 Gemfile 中:

spree (= 2.3.3) ruby depends on
spree_backend (= 2.3.3) ruby depends on
spree_core (= 2.3.3) ruby depends on
rails (~> 4.1.4) ruby

rails (4.1.2)

我在指南中列出的步骤中做错了什么。 请问,我该如何解决这些依赖关系?

【问题讨论】:

    标签: ruby-on-rails-4 rubygems e-commerce spree


    【解决方案1】:

    Rails 4.1.2 现在不是最新版本,文档已过时,Spree(至少您正在使用的分支)需要更新版本,请将您的命令更改为:

    rails 4.1.5 new mystore #or 4.1.4 就像你的错误所说:rails (~> 4.1.4) ruby 至少意味着 4.1.4

    你应该没事的。

    【讨论】:

    • 谢谢!那行得通。我改用 Rails 4.1.6。我现在将查找如何将数据库更改为 MySQL,因为它似乎默认使用 sqlite。
    猜你喜欢
    • 2013-05-13
    • 1970-01-01
    • 2013-05-12
    • 2013-06-19
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2013-07-10
    • 2013-08-20
    相关资源
    最近更新 更多