This command didn’t work for me.
$ bash < <(curl -s https://rvm.beginrescueend.com/install/rvm)
Instead, I followed the directions found on the official RVM website.Install RVM
$ curl -L get.rvm.io | bash -s stable
Find the requirements (follow the instructions)
$ source ~/.rvm/scripts/rvm
$ rvm requirements
$ rvm install 1.9.3
After your run
gem install rails, you may receive the following error message:
ERROR: While executing gem ... (Errno::EACCES) Permission denied - ~/.gem/specs
RVM doesn’t have permission to create the specs folder. To fix it, you’ll have to create this folder and then get full access to it.
sudo mkdir ~/.gem/specs sudo chmod 777 ~/.gem/specs
SWIPE’d from stack overflow