The rvm install page has comprehensive instructions for installing rvm that work on mac os x.
Install ruby on rails mac rvm.
However as the install page notes you might need gpg mac os x doesn t ship with gpg so before installing the public key you ll need to install gpg.
Older versions of os x are mostly compatible so follow along as far as you can and then google search for any problems you run into.
Use this code to install rvm.
This will take about 30 minutes.
The first step is to install the mpapis public key.
I ll provide the steps i used here.
Rvm if the install script is run as a standard non root user rvm will install into the current users s home directory.
We will be setting up a ruby on rails development environment on mac os x 10 10 yosemite.
Curl l https get rvm io bash s stable.
Then install the specific version of ruby that you need through rvm where ruby version can be typed as ruby 2 4 0 for instance or just 2 4 0.
Install rvm with the latest ruby 2 2 0 and rails 4 2 0 note that i now recommend chruby and ruby install.
Installing rvm and ruby.
Rvm stands for ruby version manager and is one of the most popular tools that allow you to install and manage multiple versions of ruby and rails on the same computer.
We will use this version in the examples that follow.
I ve left the rvm instructions for historical purposes.
As we mentioned above command line tool ruby version manager rvm will help you a lot for managing and working with multiple ruby environments.
Rvm list we can switch between the ruby versions by typing.
At the time of this writing the latest stable ruby is 2 7 0.
However if you have previously installed rvm you still need to update it to the latest version using this.
Rvm will compile ruby from source and install a global gemset.