Ubuntu 13.04 Ruby Installation

Source: Internet
Author: User
The company's computer is a Linux system. These days, the software was installed with blood, and various versions and paths were messy. Summarize the Ruby installation method and save some files. 1. In Windows, you just need to remember to change the environment variables. 2. LinuxUbuntu13.042.1 Software Center. Very convenient. 2.2 compile and install. Decompress the compilation installation: tar-zxfruby-1.9.3-p495.tar.gzcdruby-1.9.3-p49

The company's computer is a Linux system. These days, the software was installed with blood, and various versions and paths were messy. Summarize the Ruby installation method and save some files.

1. In Windows, you just need to remember to change the environment variables.

2. Linux Ubuntu 13.04

2.1 software center. Very convenient.

2.2 compile and install.

Decompress, compile, and install:

Tar-zxf ruby-1.9.3-p495.tar.gz
Cd ruby-1.9.3-p495
./Configure -- prefix =/usr/local/ruby
Make
Sudo make install

Change the environment variable and add the PATH of Ruby to PATH:

Sudo vi/etc/environment
Source/etc/environment

Check the version to verify whether the installation is successful:

Ruby-v

We recommend that you use RVM to install and manage Ruby in 2.3.

Curl-L get. rvm. io | bash-s stable
Source ~ /. Bash_profile
Rvm install 1.9.3
Rvm use 1.9.3 -- default

For more information about Ubuntu, see Ubuntu special page http://www.linuxidc.com/topicnews.aspx? Tid = 2

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.