Build a ruby on rails development environment under CentOS7, centos7rails

Source: Internet
Author: User

Build a ruby on rails development environment under CentOS7, centos7rails

1. Install rvm

Curl-L https://get.rvm.io | bash-s stable

Rvm is a command line tool that provides management and switching of Multi-version ruby environments. You can also manage different gemsets based on projects.

If the ssh key is not generated, this step may fail. directly generate the key using ssh-keygen and then install the key.

Gpg problems may also occur: Execute as prompted:

Gpg2 -- keyserver hkp: // keys.gnupg.net -- recv-keys 409b6b1796c275462a1703111084bb82d39dc0e3

. If it fails, run: command curl-sSL https://rvm.io/mpapis.asc | gpg2 -- import -. Install rvm again and perform some operations as prompted. Then rvm-v can see that rvm is installed.

If the installation fails, try to connect to the vpn before installing.

2. Use rvm to install the ruby version you need

Rvm install 2.1.1

Here I installed ruby 2.1.1.

Articles you may be interested in:
  • Ruby On Rails getting started (installation and use process)
  • Tutorial on installing and configuring Ruby on Rails development environment in Windows
  • Install and deploy the Ruby on Rails application on Ubuntu 12.04 Server
  • Install ruby on rails development environment in win7
  • Quick Guide to installing Ruby on Rails

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.