[英]Failure to install ruby gems with rbenv
I can't install any Ruby gems. 我无法安装任何Ruby宝石。 I am using rbenv and when I use gem install rails
, I get a permission error: 我使用rbenv,当我使用gem install rails
,我收到一个权限错误:
ERROR: While executing gem ... (Gem::FilePermissionError)
You don't have write permissions for the /Library/Ruby/Gems/2.0.0 directory
I have been trying to install Rails for days now, even with RVM. 我一直试图安装Rails几天,即使使用RVM。
I am pretty sure the problem lies with my $PATH
but I do not know how to change this. 我很确定问题出在我的$PATH
但我不知道如何更改它。
I am running Ruby version 2.0.0p247. 我正在运行Ruby版本2.0.0p247。
你可以尝试gem update --system
,并再次尝试gem安装,如果失败,请发布你的日志。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.