简体   繁体   English

为什么在安装RVM时出现权限错误?

[英]Why do I get permissions errors installing RVM?

I followed the RVM installation manual, and found that my system meets the minimum requirements for installation. 我遵循了RVM安装手册,发现我的系统符合安装的最低要求。

I included the user in /etc/sudoers . 我将用户包括在/etc/sudoers

Then I ran: 然后我跑了:

\curl -L https://get.rvm.io | bash-s stable - autolibs = homebrew - rails

but the installation process returned: 但是安装过程返回了:

  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:100   184  100   184    0     0    156      0  0:00:01  0:00:01 --:--:--   229
 46 15779   46  7325    0     0   4433      0  0:00:03  0:00:01  0:100 15779  100 15779    0     0   9547      0  0:00:01  0:00:01 --:--:-- 8255k
Please read and follow further instructions.
Press ENTER to continue.
bash: line 584: /usr/local/rvm/RELEASE: Permission denied`

What is it I'm doing wrong? 我做错了什么? I also read other comments on this forum, that said it is correct to install RVM from the console as a user, not root, so any help will be greatly appreciated. 我还在该论坛上阅读了其他评论,说以用户身份而不是root用户身份从控制台安装RVM是正确的,因此将不胜感激。

It seems you do not run the command as root. 看来您没有以root用户身份运行命令。

Try sudo curl -L https://get.rvm.io | bash-s stable - autolibs = homebrew - rails 尝试sudo curl -L https://get.rvm.io | bash-s stable - autolibs = homebrew - rails sudo curl -L https://get.rvm.io | bash-s stable - autolibs = homebrew - rails . sudo curl -L https://get.rvm.io | bash-s stable - autolibs = homebrew - rails

EDIT: 编辑:

Ok, i just see this post . 好的,我只看到这篇文章 This issue can be due to oldest rvm installation and to solve it, you need to clean oldest installation. 此问题可能是由于最旧的rvm安装引起的,要解决此问题,您需要清除最旧的安装。

To do that: sudo rm -rf /etc/rvmrc /etc/profile.d/rvm.sh /usr/local/rvm Then, rerun your install command line. 为此: sudo rm -rf /etc/rvmrc /etc/profile.d/rvm.sh /usr/local/rvm然后,重新运行安装命令行。

Hope it will work. 希望它能工作。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM