Alex Rivera | Logout

RVM installation fails

Asked 2011-12-23T03:49:21.983
20

I followed the instructions from the RVM homepage (https://rvm.beginrescueend.com/rvm/install/)

I typed the following:

sudo bash -s stable < <(curl -s https://raw.github.com/wayneeseguin/rvm/master/binscripts/rvm-installer )

the script executed and didn't seem to give any errors.

the same without sudo gave an error:

Warning: Failed to create the file 
Warning: /usr/share/ruby-rvm/archives/wayneeseguin-rvm-stable.tgz: Permission 
Warning: denied
  0  792k    0  3908    0     0   2257      0  0:05:59  0:00:01  0:05:58  2257
curl: (23) Failed writing body (0 != 3908)

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

I also put this in my ~/.bashrc

echo '[[ -s "$HOME/.rvm/scripts/rvm" ]] && . "$HOME/.rvm/scripts/rvm"

what I get is:

~$ type rvm | head -1
bash: type: rvm: not found

~$ source "/usr/local/rvm/scripts/rvm"
bash: /usr/local/rvm/scripts/rvm: No such file or directory

~$ source "$HOME/.rvm/scripts/rvm"
bash: /home/anonym/.rvm/scripts/rvm: No such file or directory

How can this be fixed?

PS

I'm using Ubuntu 11.10

Edit
Report

1 Answer

6

I'm sure there's a more elegant way to fix this, but I ran into the same issue and was kinda in a hurry, so I went for a quick and dirty workaround:

$ curl -s https://raw.github.com/wayneeseguin/rvm/master/binscripts/rvm-installer > foo.sh
$ chmod 755 foo.sh

Then edit line 162, and add -k to the curl command:

$ vim foo.sh
162 if curl -Lk https://github.com/${_repo}/rvm/tarball/${_branch} -o ${rvm_archives_path}/${_repo}-rvm-${_branch}.tgz

Then run the script:

$ ./foo.sh --branch stable

Like I said, not ideal, but it got me where I needed to be quickly.

answered 2012-01-06T16:25:12.970

Your Answer