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