[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.