Ubuntu-14.04.5-desktop-amd64
Tip: Copy and Paste commands, perform an error and enter the command manually
1. Download source set to Mirrors.aliyun.com/ubuntu remember Reload
2. Install RVM
Ubuntu has its own installation method (Curl will report PGP-related errors)
Ubuntu Install RVM Installation Method HTTPS://GITHUB.COM/RVM/UBUNTU_RVM
RVM when the installation is complete:
* First you need to add all users and that'll be the using RVM to ' RVM ' group,
And Logout-login again, anyone using RVM would be operating with ' umask
U=rwx,g=rwx,o=rx '.
* To start using RVM-need to run ' source/etc/profile.d/rvm.sh '
In all your open shell windows, in rare cases you need to reopen all shell windows.
Tip: Terminal Rvm:command not found can input/bin/bash-login
Perform the next rvm-v view version
RVM 1.27.0 (Manual) by Wayne E. Seguin <[email Protected]>, Michal Papis <[email protected]> [https:// rvm.io/]
RVM Installation Complete
3.install Ruby
Perform the next RVM list known to see the ruby version you can install before you install Ruby
RVM Install 2.2.0 can specify a version installation
After the installation is complete RVM List view version
If there are multiple versions using RVM use 2.2.0 to switch versions RVM uses 2.2.0--default to specify the default version
Ruby-v See ruby version
Ruby Installation Complete
4. Install Rails
Learn Gemset Https://ruby-china.org/wiki/rvm-guide
Gemset can be understood as an independent virtual GEM environment where each gemset is independent of each other.
RVM Gemset Create rails4.1.4
RVM use [email protected]--default
Gem insatll rails-v 4.1.4--no-ri--no-rdoc
Successfully installed rails-4.1.4
Gems installed
Rails-v View the next version
Installation Complete
This article is from "XS Notes" blog, declined reprint!
Install Rails on Ubuntu