It's really tedious to install/update the Ruby environment under your Mac.
First, Mac OS X comes with a ruby environment, and we manage the Ruby version with RVM (Ruby version manager)
Just execute the following 2 sentences:
$ gpg2--keyserver hkp://keys.gnupg.net--recv-keys 409b6b1796c275462a1703113804bb82d39dc0e3
$ \curl-ssl Https://get.rvm.io | Bash-s Stable
According to some of the past bad habits, directly copied, but found will prompt command not found, then we will be the next GUNPG2, installation methods have 2 kinds:
Through the terminal
Install via Cakebrew (if you are tired of terminal words)
But in this process will help you install a lot of dependencies, it is possible to install the failure, but also through the terminal command line installation (the process is not described in detail ...), anyway, I used 2 combinations of the way to install
When we finish the installation, we can execute the above 2 sentences! This RVM the successful installation, re-open the terminal is in force!
Native RVM version of the Ruby environment installed
RVM List
Installation
Example: RVM Install 2.2.0
We can switch to the current Ruby version
RVM Use 2.0.0
RVM Use System
RVM--default 2.0.0
Ruby Environment under Mac