CentOS7 build Ruby on Rails development environment _ruby topics

Source: Internet
Author: User
Tags curl ssh ruby on rails

1. Installation RVM

Curl-l Https://get.rvm.io | Bash-s Stable

RVM is a command-line tool that provides management and switching of multiple versions of the Ruby environment, as well as different gemset depending on project management.

If the SSH key is not generated, this step may fail, and the installation can be performed directly after Ssh-keygen the key generation.

You may also encounter GPG-related issues: Follow the prompts:

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

。 If it fails, execute: Command Curl-ssl HTTPS://RVM.IO/MPAPIS.ASC | GPG2--import-. Then install the RVM once more, and follow the installation prompts for some action. Then rvm-v can see the RVM installed.

If it is not installed, you can try to connect to the VPN and then install it.

2, use RVM to install the Ruby version you need

RVM Install 2.1.1

Here I have the Ruby 2.1.1 version installed.

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.