Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

Tags:

version

ruby

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?

like image 284
ChuchaC Avatar asked Jul 05 '16 01:07

ChuchaC


1 Answers

Open your terminal and run

curl -sSL https://raw.githubusercontent.com/rvm/rvm/master/binscripts/rvm-installer | bash -s stable 

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

Now, run rvm list known

This shows the list of versions of the ruby.

Now, run rvm install ruby@latest to get the latest ruby version.

If you type ruby -v in the terminal, you should see ruby X.X.X.

If it still shows you ruby 2.0., run rvm use ruby-X.X.X --default.

Prerequisites for windows 10:

  • C compiler. You can use http://www.mingw.org/
  • make command available otherwise it will complain that "bash: make: command not found". You can install it by running mingw-get install msys-make
  • Add "C:\MinGW\msys\1.0\bin" and "C:\MinGW\bin" to your path enviroment variable
like image 181
Abhinay Reddy Keesara Avatar answered Sep 16 '22 11:09

Abhinay Reddy Keesara