Aprire il terminale e digitare i seguenti comandi:

\curl -sSL https://get.rvm.io | bash -s stable

rvm install ruby-2.2.2

rvm use ruby-2.2.2