注意:这是我第一次尝试使用 Ruby 和 Rails!
安装完所有内容后,我尝试使用
rails new rubyapp
该命令创建了所有内容,然后捆绑程序启动。运行时它停在
Errno::EACCES: Permission denied - /Library/Ruby/Gems/1.8/build_info/coffee-script-source-1.6.2.info
An error occurred while installing coffee-script-source (1.6.2), and Bundler cannot continue.
Make sure that `gem install coffee-script-source -v '1.6.2'` succeeds before bundling.
好吧..没问题..让我们安装这个..
sudo gem install -p http://myproxy:8080 coffee-script-source -v '1.6.2'
Installing ri documentation for coffee-script-source-1.6.2
1 gem installed
好的。再试一次。
bundle install
并停在这里:
Errno::EACCES: Permission denied - /Library/Ruby/Gems/1.8/build_info/execjs-1.4.0.info
An error occurred while installing execjs (1.4.0), and Bundler cannot continue.
Make sure that `gem install execjs -v '1.4.0'` succeeds before bundling.
!!!
不用说我已经安装了这个,再试一次,同样的错误出现了不同的“宝石”。
我的问题是:是否有一个命令可以查找我是否已经安装了我需要的所有东西而无需多次执行这些步骤(也因为它们非常慢..)?
我也尝试过捆绑,sudo
但也许它不适用于代理..:/
提前致谢