简体   繁体   English

缺少狂欢宝石,无法安装它

[英]missing spree gem, can t install it

I have cloned a git repository of a project, that is using spree, and I want to run it on localhost. 我克隆了一个项目的git存储库,即使用spree,我想在localhost上运行它。

But as I said in an article, I can not install spree gem: 但正如我在一篇文章中所说,我无法安装spree gem:

$ rake gems:install
Missing the Spree 0.10.2 gem. Please `gem install -v=0.10.2 spree`, update your SPREE_GEM_VERSION setting in config/environment.rb for the Rails version you do have installed, or comment out SPREE_GEM_VERSION to use the latest version installed.

$ gem install -v=0.10.2 spree
Successfully installed spree-0.10.2
1 gem installed
Installing ri documentation for spree-0.10.2...
Installing RDoc documentation for spree-0.10.2...

$ script/server
Missing the Spree 0.10.2 gem. Please `gem install -v=0.10.2 spree`, update your SPREE_GEM_VERSION setting in config/environment.rb for the Rails version you do have installed, or comment out SPREE_GEM_VERSION to use the latest version installed.

$ gem list

*** LOCAL GEMS ***

actionmailer (2.3.5)
actionpack (2.3.5)
activemerchant (1.5.1)
activemodel (3.2.8)
activerecord (3.2.8, 2.3.5)
activerecord-tableless (0.1.0)
activeresource (2.3.5)
activesupport (3.2.8, 2.3.5)
arel (3.0.2)
authlogic (3.1.3)
authlogic-oid (1.0.4)
builder (3.0.3)
bundler (1.2.1)
chronic (0.2.3)
faker (0.3.1)
highline (1.5.1)
hoe (3.1.0)
i18n (0.6.1)
less (1.2.20)
multi_json (1.3.6)
mutter (0.5.3)
paperclip (2.3.1.1)
polyglot (0.3.3)
rack (1.1.0, 1.0.1)
rails (2.3.5)
rake (0.9.2.2)
rubygems-bundler (1.1.0)
rvm (1.11.3.5)
searchlogic (2.3.5)
spree (0.10.2)
state_machine (0.8.0)
stringex (1.0.3)
treetop (1.4.10)
tzinfo (0.3.33)
whenever (0.3.7)
will_paginate (2.3.11)

I tried to google this problem, and found branches like this: 我试图谷歌这个问题,并发现这样的分支:

https://groups.google.com/forum/?fromgroups=#!topic/spree-user/Fhn_PgFQ6i8 https://groups.google.com/forum/?fromgroups=#!topic/spree-user/Fhn_PgFQ6i8

But the solution did not work for me. 但解决方案对我不起作用。

Here is my system: 这是我的系统:

  • Ubuntu 12.04 Ubuntu 12.04

  • ruby 1.8.7 (2012-06-29 patchlevel 370) [x86_64-linux] ruby 1.8.7(2012-06-29 patchlevel 370)[x86_64-linux]

You're using an ancient version of Spree there. 你在那里使用的是古代版的Spree。 We would recommend using the latest. 我们建议使用最新的。 Please follow the Getting Started Guide . 请按照入门指南进行操作

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM