In this tutorial, we will:
-
Setup a Terminal
-
Setup a Text editor
RVM is a Ruby installation and version manager. RVM works by installing Ruby inside your home directory and manages the environment variables to allow you to switch between the system-wide Ruby and any Ruby installed using RVM.
To install RVM, you first need to install XCode. XCode is available on the Mac OS X Install DVD. After installing XCode, perform a software update ( ▸ Software Update…).
Install git, using either Homebrew (as described above) or the installer for Mac OS X.
Install RVM along with the latest version of Ruby:
$ \curl -#L https://get.rvm.io | bash -s stable --autolibs=3 --ruby
Note
|
RVM will download and build the Ruby language, install RubyGems along with several essential gems and configure your PATH environment variable. |
Source your shell configuration (only necessary in the window you used to install RVM):
$ source $HOME/.bash_profile
Remove your local Gem configuration, if you have one (or move it out of the way):
$ rm -f $HOME/.gemrc