demas@demas:~$ sudo rm -rf /etc/rvmrc /etc/profile.d/rvm.sh /usr/local/rvm
demas@demas:~$ curl -L https://get.rvm.io | bash -s stable
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100   184  100   184    0     0    218      0 --:--:-- --:--:-- --:--:--   308
100 13145  100 13145    0     0  12150      0  0:00:01  0:00:01 --:--:-- 12150
mkdir: cannot create directory `/usr/local/rvm': Permission denied
How can I fix it ?
As a quick variant of eliminating this problem you can create rvm directory and allow everyone to write to it:
sudo mkdir /usr/local/rvm; sudo chmod a+xwr /usr/local/rvm
you need to clean shell environment variables before start new installation, th easiest way is to logout and login again.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With