Build a ruby environment on your Mac

Source: Internet
Author: User

First, install the system needs the package

Install the Xcode development tool, which will help you install the development packages required for your UNIX environment

Open the App Store, search Xcode, the first is, yes, there are 4 more g, speed if not good, please first toilet cry, slowly wait ~

Second, installation RVM

What is RVM? Don't understand? It doesn't matter, you are reading this article, said you also do not understand, if you understand also don't need to see this, later you slowly and understand ~ begin to enter the topic:

(1) Open the terminal of the Mac and enter a sequence of commands: curl-l Https://get.rvm.io | bash-s stable

(2) loading into RVM environment

In terminal window input:source ~/.RVM/SCRIPTS/RVM

(3) Check whether the RVM is installed correctly

In the terminal window, type:rvm-v

If you see, then, congratulations ~ ~ ~

Third, install Ruby environment with RVM

(1) List of known Ruby versions

In the terminal window, enter:RVM list known

(2) Select the existing Ruby version to install (take 2.4.0 this version as an example)

In the terminal window, enter:RVM install 2.4.0

(3) Query the installed Ruby

In the terminal window, enter:RVM list

When when is perfect!

Iv. setting up the Ruby version

In the terminal window, enter:RVM 2.4.0--default

Oh, my!

Build a ruby environment on your 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.