I'm using Linux Mint 17.3 and I'm trying to upgrade ruby to 2.4 using this guide: https://tecadmin.net/install-ruby-on-rails-on-ubuntu/
The problem is that when I get to the step "Install Ruby Dependencies" and run rvm requirements
, I get this error:
Checking requirements for mint.
Installing requirements for mint.
mkdir: cannot create directory ‘/usr/local/rvm/log/1525898101’: Permission denied
tee: /usr/local/rvm/log/1525898101/update_system.log: No such file or directory
Updating system..................
Error running 'requirements_debian_update_system ',
please read /usr/local/rvm/log/1525898101/update_system.log
Requirements installation failed with status: 1.
Since I got "permission denied" when trying to write to a system directory, I next tried sudo rvm requirements
, which gave me this error:
sudo: rvm: command not found
A few web searches later revealed that there's actually something called rvmsudo
, but that doesn't help, either:
rvmsudo requirements
sudo: requirements: command not found
What do I need to fix in order to get rvm requirements
to run without errors?