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

时间:2022-08-22 22:43:35

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.

我做错了什么?我还阅读了这个论坛上的其他评论,表示从控制台安装RVM作为用户而不是root用户是正确的,所以任何帮助都将不胜感激。

1 个解决方案

#1


3  

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。

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.

希望它会奏效。

#1


3  

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。

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.

希望它会奏效。