我嘗試使用下面的說明 http://spreecommerce.com/resources/quick-start大禮包安裝問題 - 使用RVM
的安裝工作正常安裝大禮包的寶石,而是試圖創建一個應用程序不能解決
bash: spree: command not found
PATH是 /Users/sandbox1/.rvm/gems/ruby-1.9.2-p0/bin:/Users/sandbox1/.rvm/gems/[email protected]/bin:/Users/sandbox1/。 RVM /紅寶石/紅寶石1.9.2-P0 /斌:/Users/sandbox1/.rvm/bin:在/ usr/bin中:/ bin中:/ usr/sbin目錄:/ sbin目錄:在/ usr/local/bin目錄:在/ usr/local/git/bin:/ usr/X11/bin:/ usr/X11/bin bash-3.2 $
我應該從下面的輸出添加一些東西到我的PATH?
bash-3.2$ find $HOME -name spree
/Users/sandbox1/.rvm/gems/ruby-1.9.2-p0/doc/spree-0.30.0/rdoc/lib/generators/spree
/Users/sandbox1/.rvm/gems/ruby-1.9.2-p0/doc/spree_auth-0.30.0/rdoc/lib/spree
/Users/sandbox1/.rvm/gems/ruby-1.9.2-p0/doc/spree_core-0.30.0/rdoc/lib/spree
/Users/sandbox1/.rvm/gems/ruby-1.9.2-p0/gems/spree-0.30.0/lib/generators/spree
/Users/sandbox1/.rvm/gems/ruby-1.9.2-p0/gems/spree_auth-0.30.0/app/controllers/spree
/Users/sandbox1/.rvm/gems/ruby-1.9.2-p0/gems/spree_auth-0.30.0/lib/spree
/Users/sandbox1/.rvm/gems/ruby-1.9.2-p0/gems/spree_core-0.30.0/app/controllers/spree
/Users/sandbox1/.rvm/gems/ruby-1.9.2-p0/gems/spree_core-0.30.0/app/helpers/spree
/Users/sandbox1/.rvm/gems/ruby-1.9.2-p0/gems/spree_core-0.30.0/lib/spree
/Users/sandbox1/.rvm/gems/ruby-1.9.2-p0/gems/spree_core-0.30.0/public/images/spree
bash-3.2$
同樣的問題在這裏的服務器,任何解決方案? – Chris 2010-11-24 09:58:30
實際上,更新版本的spree沒有安裝命令行工具。相反,它是一個軌道引擎。請參閱「4創建新的Spree項目」:http://spreecommerce.com/documentation/getting_started.html – Chris 2010-11-24 10:23:19
安裝Spree的教程聲稱使用sudo。 [除非你知道你在做什麼以及你爲什麼要這麼做,否則如果你的Ruby受RVM控制,請不要在安裝gem時使用sudo(http://rvm.beginrescueend.com/rubies/rubygems/)。 RVM使用沙箱,'sudo'將會越獄,並把它放在錯誤的地方。 – 2011-01-07 15:01:12