Install Rails on Ubuntu

Source: Internet
Author: User

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

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.