Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

RVM installation: `/usr/local/rvm': Permission denied

Tags:

ruby

rvm

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 ?

like image 332
ceth Avatar asked Nov 30 '22 04:11

ceth


2 Answers

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
like image 95
Yevgeniy Anfilofyev Avatar answered Dec 15 '22 12:12

Yevgeniy Anfilofyev


you need to clean shell environment variables before start new installation, th easiest way is to logout and login again.

like image 38
mpapis Avatar answered Dec 15 '22 14:12

mpapis