[Ruby on Rails Learning 1] ubuntu14.04 configure rvm and ruby, ubuntu14.04rvm

Source: Internet
Author: User

[Ruby on Rails Learning 1] ubuntu14.04 configure rvm and ruby, ubuntu14.04rvm

To install ruby, you must first install rvm.

 

Rvm is Ruby Version Manager, a command line tool developed by Wayne E. Seguin. Rvm allows you to easily install and manage ruby productivity environments, such as interpreters and gems of different versions. It is actually the ruby version manager.

 

Open the terminal and enter commands (do not worry about installation, wait patiently)

curl -L get.rvm.io | bash -s stable 

Then

echo "source ~ / .bashrc" >> ~ / .bash_profile
      
echo "source ~ / .rvm / scripts / rvm" >> ~ / .bashrc
     
source ~ / .bashrc
  
rvm -v // View rvm version 

Check

type rvm | head -1

If the previous step is not followed, the result of this step is not as follows:

rvm is a function

Enter at the terminal:

rvm -v

The expected results are as follows:

rvm 1.x.x (stable) by Wayne E. Seguin (wayneeseguin@gmail.com), Michal Papis <mpapis@gmail.com> [https://rvm.io/]

Then install Ruby:

Enter at the terminal:

rvm install 2.3.3

You can also enter the following: List known Ruby versions

rvm list known

An error occurred while installing ruby in my ubuntu14.04 system:

Requirements installation failed with status: 100.  

Solution

Run rvm before running rvm install 2.3.3

rvm autolibs disable  

Then run

rvm install 2.3.3

The problem should be solved.

 


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.