RPV RPV - 5 months ago 17x
Ruby Question

EC2: Unable to rvm install ruby

I am following this tutorial and am stuck at trying to install ruby using rvm (scroll down to see the command in the link)

I have searched online for a variety of solutions but nothing seems to work. How can I resolve the issues below?

rvm install ruby

Searching for binary rubies, this might take some

Found remote file
Checking requirements for ubuntu.

Installing requirements for ubuntu.
mkdir: cannot create directory
‘/usr/local/rvm/log/1463248047_ruby-2.3.0’: Permission denied

/usr/local/rvm/log/1463248047_ruby-2.3.0/update_system.log: No such
file or directory

Updating system......... Error running
'requirements_debian_update_system ruby-2.3.0',

showing last 15 lines
of /usr/local/rvm/log/1463248047_ruby-2.3.0/update_system.log

cannot open
‘/usr/local/rvm/log/1463248047_ruby-2.3.0/update_system.log’ for
reading: No such file or directory Requirements installation failed
with status: 1.

Notes for debugging:

1) The previous steps to install rvm have been taken already. Mainly:

su - deploy
gpg --keyserver hkp://keys.gnupg.net --recv-keys D39DC0E3
\curl -sSL https://get.rvm.io | bash -s stable

2) I tried running
sudo rvm install ruby
, but got the following error

sudo: rvm: command not found


Try to change permissions to rvm directory by this command:

sudo chmod -R a+xwr /usr/local/rvm