mart7ini
mart7ini

Reputation: 1529

rvm install troubles

I have next kind of trouble. Each try to install rvm on my local system causing next error:

$ bash -s stable < <(curl -s https://raw.github.com/wayneeseguin/rvm/master/binscripts/rvm-installer)
Downloading RVM from wayneeseguin branch stable
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                             Dload  Upload   Total   Spent    Left  Speed
100   125  100   125    0     0      5      0  0:00:25  0:00:20  0:00:05   184
100   125  100   125    0     0      3      0  0:00:41  0:00:41 --:--:--     3Warning: Failed to create the file 
Warning: /usr/local/rvm/archives/wayneeseguin-rvm-stable.tgz: Permission 
Warning: denied
  0  799k    0  2896    0     0     69      0  3:17:42  0:00:41  3:17:01  3880
curl: (23) Failed writing body (0 != 2896)

Could not download 'https://github.com/wayneeseguin/rvm/tarball/stable'.
  curl returned status '23'.

How can I change installation directory from /usr/local/ to my $HOME dir? I tried to change script manually but its didn't bring me any success. Thx

Upvotes: 1

Views: 1336

Answers (2)

mpapis
mpapis

Reputation: 53158

the rvm_path pointing to /usr/local/rvm is selected when installer is run as root (sudo, su) or when it's already set in /etc/rvmrc / ~/.rvmrc, try removing those two files:

sudo rm -rf /etc/rvmrc ~/.rvmrc

also make sure to relogin / open new shell and validate there is no rvm_path before installing again:

env | grep rvm

Upvotes: 1

Peter Svensson
Peter Svensson

Reputation: 6173

Not sure why it would try to install the files to /usr/local/rvm (that's done when running it as root or in sudomode). If it doesn't work as a regular (local install) user, try to download the script instead

 wget https://raw.github.com/wayneeseguin/rvm/master/binscripts/rvm-installer

open it vi rvm-installer and modify the rvm_path="/usr/local/rvm" to something else and then run it bash ./rvm-installer stable.

But it should really not be necessary...Are you sure you're not logged in as root?

Upvotes: 0

Related Questions