On OS X El Capitan, Yosemite, Mavericks, and mac OS Sierra, Ruby 2.0 is included.OS X Mountain Lion, Lion, and Snow Leopard ship with Ruby 1.8.7.

updating ruby on the mac-8

The following command will make it the default for the user: This guide discussed how to update Ruby on OS X Maverick.

It showed how to install Homebrew, rbenv/ruby-build and how to use rbenv to install and then default to a new version of Ruby.

If you have not already done so you may wish to read the Installing Calabash on OS X guide and install Calabash.

This page describes how to use major package management systems and third-party tools for managing and installing Ruby and how to build Ruby from source.

If you're coming from PHP, you may already be familiar with My SQL.

If you're new to databases, I'd suggest skipping to setting up Postgre SQL.

While the full list of pros and cons is outside of the scope of this page, the most basic reason is that most package managers have older versions of Ruby in their official repositories.

If you would like to use the newest Ruby, make sure you use the correct package name, or use the tools described further below instead.

You can install My SQL server and client from Homebrew: # To have launchd start postgresql at login: ln -sfv /usr/local/opt/postgresql/*plist ~/Library/Launch Agents # Then to load postgresql now: launchctl load ~/Library/Launch Agents/postgresql.plistrails new myapp #### If you want to use My SQL rails new myapp -d mysql #### If you want to use Postgres # Note you will need to change config/database.yml's username to be # the same as your OSX user account.

I have created a new user account on my mac and I am trying to update to the current version of ruby on it (1.9.2) from the snow leopard default of 1.8.7.

Many people on OS X use Homebrew as a package manager.