[英]Is anyone having problems with bundle install after installing el capitan?
When I type bundle install
, it gives me this error: 当我输入bundle install
,它给了我这个错误:
-bash: bundle: command not found -bash:捆绑:找不到命令
So I tried gem install bundler -v 1.9.7
, and got this error: 所以我尝试了gem install bundler -v 1.9.7
,并得到了这个错误:
ERROR: While executing gem ... (Gem::FilePermissionError) You don't have write permissions for the /Library/Ruby/Gems/2.0.0 directory. 错误:执行gem时...(Gem :: FilePermissionError)您没有对/Library/Ruby/Gems/2.0.0目录的写权限。
Try using sudo: 尝试使用sudo:
sudo gem install bundler -v 1.9.7
Make sure you're using a new version of ruby, instead of the one that comeswith Mac OS X. You can install a new one with RVM : 确保使用的是新版本的ruby,而不是Mac OS X随附的版本。您可以使用RVM安装新的版本:
gpg --keyserver hkp://keys.gnupg.net --recv-keys 409B6B1796C275462A1703113804BB82D39DC0E3
\curl -sSL https://get.rvm.io | bash -s stable --ruby
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.