RVM installation and use help

Source: Internet
Author: User

 

This plug-in is very convenient to install and switch ruby versions. It is strongly recommended that the ruby version of the Mac system is outdated. Therefore, you need a tool to manage it and install RVM.

Bash and git are required. The installation of these two tools is very simple.

Run the following command to install RVM:

Bash <(curl http://rvm.beginrescueend.com/releases/rvm-install-head)

 

Then modify the user configuration file/Users/username/. profile. You can also write it to other global configurations.

Add a line of code:

[[-S "$ HOME/. rvm/scripts/rvm"] &. "$ HOME/. rvm/scripts/rvm" # This loads RVM into a shell session.

 

Restart Terminal and RVM has been installed. sudo is not required during RVM usage, and gem is not required.

Then you can install ruby, for example:

Rvm install ruby-1.8.7 -- head -- docs

 

--docsIs automatically generated after compilation and installation,--headIs the latest version

Delete a specific version of ruby and delete both the document and gems. Then:

Rvm remove Ruby-1.8.7 -- docs -- gems

 

Select version:

Rvm use Ruby-1.8.7 -- default

 

Query the current version:

Rvm info

 

 

List versions:

Rvm list

 

More commands, access http://rvm.beginrescueend.com/rvm/

 

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.