MAC OS 10.11 Update ruby

Source: Internet
Author: User
Tags install cocoapods

1. Install Cocoapods,ruby version of the low-"start updating ruby-" began to update the gem, this is a no return AH comrades, all kinds of permission denied, various paths do not exist, various paths do not have read and write permissions, various unsuccessful!

2. Comfortable and elegant way: (ref:1190000003784636)

What is RVM? Why install RVM, because RVM lets you have multiple versions of Ruby and can switch freely between multiple versions.
First step: Install RVM

$ curl -L get.rvm.io | bash -s stable$ source ~/.rvm/scripts/rvm
    • Wait for the terminal to load, and then enter:

rvm -v

If the version can be displayed, the installation is successful.

Step Two: Install Ruby (cocoapods requires 2.2.0 or more)

    • List the version information that Ruby can install

rvm list known
    • Install a ruby version

rvm install 2.1.4

If you want to set as the default version, you can use this command to complete

rvm use 2.1.4 --default
    • View the installed Ruby

rvm list
    • Uninstall an installed Ruby version

rvm remove 2.1.4

 

MAC OS 10.11 Update ruby

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.