Hell0
Hell0

Reputation: 349

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.

I included the user in /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.

Upvotes: 0

Views: 549

Answers (1)

Simon Ninon
Simon Ninon

Reputation: 2451

It seems you do not run the command as root.

Try 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.

To do that: sudo rm -rf /etc/rvmrc /etc/profile.d/rvm.sh /usr/local/rvm Then, rerun your install command line.

Hope it will work.

Upvotes: 3

Related Questions