Installing RVM

Follow 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 2.0.0-p353

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