Many people on OS X use Homebrew as a package manager.It is really easy to get a newer version of Ruby using Homebrew: A source-based method can be used to install Ruby using the Ports Collection.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.Debian GNU/Linux and Ubuntu use the apt package manager.chruby allows you to switch between multiple Rubies.chruby can manage Rubies installed by ruby-install or even built from source.If you are planning to use RVM as a version manager you do not need a separate installer, it comes with its own.
RVM allows you to install and manage multiple installations of Ruby on your system. It is available for OS X, Linux, or other UNIX-like operating systems.
ruby-build can also be used as a standalone program without rbenv.
It is available for OS X, Linux, and other UNIX-like operating systems.
ruby-install allows you to compile and install different versions of Ruby into arbitrary directories.
There is also a sibling, chruby, which handles switching between Ruby versions.