简体   繁体   English

Rails / Spree -bash:狂欢:找不到命令

[英]Rails/Spree -bash: spree: command not found

I have worked with rails before and i thought that i would try out spree to learn more about engines. 之前我曾与Rails合作过,我认为我会尝试疯狂学习更多有关引擎的知识。 Following the getting started tutorial on sprees documentation it seemed very strait forward. 遵循有关sprees 文档的入门教程之后,前进似乎很困难。 I installed the gem gem install spree_cmd and then added gem 'spree' to the gemfile and ran bundler which ran fine. 我安装了gem gem install spree_cmd ,然后将gem install spree_cmd gem 'spree'添加到gemfile中,并运行了很好的捆绑程序。 It installed several spree gems. 它安装了几个狂欢宝石。 But on the instruction to run spree install --auto-accept it returns 但是在执行spree install --auto-accept的指令上会返回

$ spree install --auto-accept
-bash: spree: command not found

I am running on mac OS X 10.8.4. 我在Mac OS X 10.8.4上运行。 ruby 1.9.3p327 rails 2.3.13 and rbenv and my ruby manager 红宝石1.9.3p327轨道2.3.13和rbenv和我的红宝石经理

any thing i am missing? 我有什么想念的吗?

您应该尝试将gem'spree'添加到Gemfile中,然后执行$ bundle install和$ spree install --auto-accept

I got this problem too! 我也有这个问题! And I tried to search for a solution. 我试图寻找解决方案。 Well, spree require an exact version of ruby and rails. 好吧,狂欢需要精确版本的红宝石和铁轨。 So I think you need to install a correct ruby version. 因此,我认为您需要安装正确的红宝石版本。 Try run : 尝试运行:

$rbenv install 2.0.0-p247

This makes the spree command works for me 这使得spree命令对我有用

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

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