Ruby Environment under Mac

Source: Internet
Author: User

It's really tedious to install/update the Ruby environment under your Mac.

First, Mac OS X comes with a ruby environment, and we manage the Ruby version with RVM (Ruby version manager)

Just execute the following 2 sentences:

$ gpg2--keyserver hkp://keys.gnupg.net--recv-keys 409b6b1796c275462a1703113804bb82d39dc0e3

$ \curl-ssl Https://get.rvm.io | Bash-s Stable

According to some of the past bad habits, directly copied, but found will prompt command not found, then we will be the next GUNPG2, installation methods have 2 kinds:

Through the terminal

Install via Cakebrew (if you are tired of terminal words)

But in this process will help you install a lot of dependencies, it is possible to install the failure, but also through the terminal command line installation (the process is not described in detail ...), anyway, I used 2 combinations of the way to install

When we finish the installation, we can execute the above 2 sentences! This RVM the successful installation, re-open the terminal is in force!

Native RVM version of the Ruby environment installed

RVM List

 

Installation

Example: RVM Install 2.2.0

We can switch to the current Ruby version

RVM Use 2.0.0
RVM Use System
RVM--default 2.0.0

Ruby Environment under 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.