Run the following command to install RVM.
\curl -sSL https://get.rvm.io | bash -s stable --ruby
The above command should report a message of the form below at the end:
To start using RVM you need to run
source $HOME/.rvm/scripts/rvm
in all your open shell windows, in rare cases you need to reopen all shell windows.
References