1. If Git is not installed, go to http://code.google.com/p/git-osx-installer/to download and install it. 2. Install RVM and run the following command to install it: Shell code.
Bash <(curl-s https://rvm.beginrescueend.com/install/rvm) to be available in shell, enter the following command in. bash_profile: Java code cd ~ /Sudo vim. bash_profile # In. add [[-s "$ HOME /. rvm/scripts/rvm "] & source" $ HOME /. rvm/scripts/rvm "then exit the terminal and restart. 3. Run the following command to install Ruby. You can see that rvm supports the following content: Shell code rvm list known use the following command to install ruby1.9.2: shell code rvm install 1.9.2 www.2cto.com and then use the following command to make the system use the new ruby: Shell code rvm use 1.9.2. After you restart the terminal, you will find that it is restored to 1.8.7, you can use the following command to make the system use 1.9.2 by default: Shell code rvm -- default use 1.9.2 4. install Rails Shell code gem install rails author jsntghf