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 stableLoad RVM
$ source ~/.rvm/scripts/rvmFind the requirements (follow the instructions)
$ rvm requirementsInstall ruby
$ 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 http://stackoverflow.com/questions/4303088/permission-denied-error-with-rvm