Installing RVM

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

Load RVM

$ source ~/.rvm/scripts/rvm

Find the requirements (follow the instructions)

$ rvm requirements

Install ruby

$ rvm install 1.9.3

Installing Rails

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