Update Ruby on Mac

Source: Internet
Author: User

Since you are ready to use bootstrap in your project, you will be prompted for a ruby version at 1.9.2 during the installation of Bootstrap, while the Ruby version that is currently in use is the 1.8.7 that comes with the Mac system. So you need to upgrade Ruby. In this case, Ruby is upgraded using RVM, which is as follows:

1, installation RVM

Rvm:ruby version Manager,ruby release manager, including Ruby version management and GEM Library Management (Gemset)

get. Rvm.io | Bash-s Stable  

Wait a while before you can successfully install the RVM.

    $ source ~/. BASHRC      ~/.bash_profile  

Test whether the installation is normal

Rvm-v  

2. Upgrade Ruby with RVM

    #查看当前ruby版本       -v      1.8.  7      #列出已知的ruby版本      $ RVM list known      1.9.  3      1.9.  3  

After the installation is complete ruby-v see if the installation is successful.


Update Ruby on Mac

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.