Install RVM on OS X

What is this RVM you speak of?

What is RVM? RVM is a version and Gemset manager for your local Ruby environment. It's imperative to keep your development environment organized if you are developing multiple Ruby programs at any given time.

RVM allows you to switch back and forth between different versions of Ruby. This means that you can work on two different Ruby programs that use different versions of Ruby without worrying about virtual machines, etc.

Additionally, RVM alleviates headaches when it comes to application specific gems. For instance, if you're developing a Sinatra application, you wouldn't need the Rails gem installed.

RVM allows you to create Gemsets for your different projects and load them independently of the active Ruby version.

The installation process is quick and easy, so let's get it done!

Installing RVM

Before we run the install command we want to be sure that we're using a secure installation by utilizing gpg.

If you don't have gpg installed on your Mac, make sure you have Homebrew installed, and run the following command after brew doctor and brew update:

brew install gpg

You can ensure gpg is installed by opening a terminal window and typing in gpg --version.

Once you're certain that it is installed, run the following:

gpg --keyserver hkp:// --recv-keys 409B6B1796C275462A1703113804BB82D39DC0E3

All One Line

Now you're ready to securely install RVM. It's just a one liner from here:

\curl -sSL | bash -s stable

RVM should be ready to go on your system! Install a new version of Ruby by typing the following command ( replacing the 'x's with your desired version ):

rvm install ruby-x.x

That's about it, enjoy the modularity and compatibility you now have with RVM! To learn more, check out the official RVM website.