Last Updated: February 25, 2016
·
1.271K
· adinugroho

Update Ruby Version to 2.x.x using RVM on OS X

Update RVM

rvm get stable

Update homebrew

sudo brew update

Install all requirements for ruby 2.x.x to work using rvm requirements command

sudo rvm requirements

List all latest ruby version and remember ruby version that you want to install

rvm list known    

Install ruby 2.x.x (change 2.0.0-p195 with desired ruby version)

rvm install 2.0.0-p195

List all installed ruby

rvm list

If the current/default ruby version isn't version you just installed, set it using

rvm use 2.0.0-p195 --default