RVM Switching Ruby versions

Source: Internet
Author: User

RVM is the acronym for Ruby version Manager and is a command-line tool that allows you to easily install, manage, and use multiple versions of Ruby. Different rails projects use RVM to switch freely when using the same version of Ruby and Rails.

Installing RVM

Install RVM (development version)-Installing Ruby development

\curl -sSLhttps://get.rvm.io | bash

Install RVM stable with ruby-stable version with Ruby:

\curl -sSLhttps://get--ruby
View Ruby version
list

You will see the following output:

rvm rubies   ruby-2.2.0 [ x86_64 ]=* ruby-2.2.1 [ x86_64 ]   ruby-2.2.3 [ x86_64 ]# => - current# =* - current && default#  * - default

View current Ruby version

rvm current
Switch Ruby version

Now 2.2.1 is the ruby version being used, if you want to switch to 2.2.2:

rvm --defaultuse2.2.2

If the 2.2.2 version is not installed, the command will be prompted ruby-2.2.2 is not installed.
to install:

install ruby-2.2.2

RVM Switching Ruby versions

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.