How to Update Ruby Version 2.0.0 to the Latest Version in MAC Osx Yosemite

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

Open your terminal and run

curl -sSL | 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
  • 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

How to update Ruby with Homebrew?

brew upgrade ruby

Should pull latest version of the package and install it.

brew update updates brew itself, not packages (formulas they call it)

Why is ruby -v still showing version 2.0.0 even after successfully installing ruby 2.5.3?

I suggest you install RVM:

The install instruction is on the site.

After you're done installing RVM do.

rvm install 2.5.3

Then test with ruby -v to check if you have the version you want (2.5.3). If not we can help you from that point.

How to correctly update system ruby version to latest version (2.2.1) on OSX

Use Homebrew but make sure /usr/local/bin is early in your path. Ex:


export PATH=/usr/local/bin:$PATH

This will not update the system Ruby version. Instead it will install another version of ruby and this line tells bash to look for the new version instead.

Can I upgrade to the current version of Ruby (2.2.3) on OS X v10.6.8?

I suggest that you use RVM to install Ruby.

curl -sSL | bash -s stable --ruby

You need to restart the terminal in order to run rvm:

rvm install 2.2
rvm use 2.2 --default

Shopify CLI: Best way to update Ruby for Shopify on OSX 11?

Switching to Homebrew Ruby requires you update the PATH environment variable (zsh shell in OSX11 instead of bash) by running...

$ echo 'export PATH="/usr/local/opt/ruby/bin:$PATH"' >> ~/.zshrc

I still see a Shopify warning that Ruby 3.1.0 is outside the range supported by the CLI but assume that's a Shopify issue because this page states a requirement of Ruby 2.7+.

RVM: failure in installing latest version of ruby on Mac OSX El Capitan

Try updating Homebrew, exit Terminal, and re-open. Then rvm install ruby-1.9.3-p551 <- Use your version #

Also make sure to set it as default. rvm --default use {version #}, exit Terminal, and re-open.

I got it by accident. Some of it from this YouTube video: Setting Up Ruby [ Ruby on Rails from the Ground Up - 2/5 ]. The rest was by poking it with a sharp stick.

Related Topics

Leave a reply