2013-11-21 150 views
1

所以我在这里按照本教程新的基金项目: http://foundation.zurb.com/learn/video-started-with-foundation.html无法创建

cd到我的项目文件夹,安装红宝石,我安装凉亭,安装基础

gem install foundation

但是我无法创建新的基础项目。

According to the site,命令只是foundation new PROJECT_NAME

我目前得到的错误:击:基础:找不到命令

enter image description here

这里是我的基础安装路径

/usr/local/lib/ruby/gems/2.0.0/gems/foundation-1.0.1/.gitignore 
/usr/local/lib/ruby/gems/2.0.0/gems/foundation-1.0.1/Gemfile 
/usr/local/lib/ruby/gems/2.0.0/gems/foundation-1.0.1/LICENSE.txt 
/usr/local/lib/ruby/gems/2.0.0/gems/foundation-1.0.1/README.md 
/usr/local/lib/ruby/gems/2.0.0/gems/foundation-1.0.1/Rakefile 
/usr/local/lib/ruby/gems/2.0.0/gems/foundation-1.0.1/bin/foundation 
/usr/local/lib/ruby/gems/2.0.0/gems/foundation-1.0.1/foundation-cli.gemspec 
/usr/local/lib/ruby/gems/2.0.0/gems/foundation-1.0.1/lib/foundation/cli.rb 
/usr/local/lib/ruby/gems/2.0.0/gems/foundation-1.0.1/lib/foundation/cli/generator.rb 
/usr/local/lib/ruby/gems/2.0.0/gems/foundation-1.0.1/lib/foundation/cli/version.rb 
/usr/local/lib/ruby/gems/2.0.0/gems/foundation-1.0.1/test/Gemfile 
/usr/local/Cellar/ruby/2.0.0-p195/bin/foundation 
Successfully installed foundation-1.0.1 
Parsing documentation for foundation-1.0.1 
Parsing sources... 
100% [ 3/ 3] lib/foundation/cli/version.rb 
1 gem installed 
Leons-MacBook-Pro:websites leongaban$ 

-

/user/local/lib/ruby/gems/2.0.0/gems/foundation-1.0.1 

回答

1

首先尝试找到在安装基础:

updatedb && locate foundation 

如果基础路径是不是在你的PATH变量,添加:

export PATH=$PATH:/path/to/your/foundation 

也在安装过程中使用-V选项看看基础安装在哪里

+0

哦,非常感谢,在安装过程中不知道'-V'。我粘贴上面的路径。接下来我应该做些什么来创建基础项目? 'export PATH = $ PATH:/user/local/lib/ruby/gems/2.0.0/gems/foundation-1.0.1 ' –

+1

invoke'/usr/local/Cellar/ruby/2.0.0-p195/bin/foundation'或将它添加到你的路径:'export PATH = $ PATH:/ usr/local/Cellar/ruby​​/2.0.0-p195/bin'并运行'foundation new YOUR_PROJECT' –

+0

* SWEET thanks!*:DI would有没有想法创建和导出PATH变量..刚刚得到我的基金会项目创建:) –