Use rvm to install ruby and rails on Mac

Source: Internet
Author: User


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

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.