ChuchaC ChuchaC - 4 months ago 11
Ruby Question

How to update Ruby Version 2.0.0 to the latest version in Mac OSX Yosemite?

I need to update my ruby version from 2.0.0 to the latest version, I can not use some gems because my version is not updated.
I had used Homebrew to install Ruby some time ago, How can i update my Ruby version?

AK1 AK1
Answer

Open your terminal and run

curl -L https://get.rvm.io | bash -s stable –ruby

When this is complete, you need to restart your terminal for the rvm to work.

Now, run rvm list known

This shows the list of versions of the ruby.

Now, run rvm install ruby-2.2.0

If you type ruby -v in the terminal, it still shows you ruby 2.0.

To use the latest installed version. Run rvm use ruby-2.2.0

Comments