Installing Ruby in Linux and Windows environments

Source: Internet
Author: User

First, install Ruby under Linux

1-First, we want to get the latest Ruby release version (currently ruby-1.8.2.tar.gz).

Please download it to www.ruby-lang.org/en/20020102.html.

2-then decompression: TAR-ZXF ruby-1.8.2.tar.gz

3-Last Run:

./configure

Make

Make install

This is the basic Linux under the Software installation method:

4-ok, knock now: ruby-v

Is there a ruby version number, congratulations, you have successfully installed the ruby!

There are two ways to install Ruby in a Windows environment

1-Completely compile the installation from the source code

Is that we download the latest source code for the Ruby language, compile and install Ruby with VC or other C compiler.

But in fact, no trouble, already have netizens for us to compile, direct to http://www.garbagecollect.jp/ruby/mswin32/en/download.

It's best to set the $path path (like setting the JDK path) when you get back.

2-The simplest method (recommended!) )

Download One-click-installer directly from Http://rubyforge.org/projects/rubyinstaller, double-click to install, everything is done!

The software contains Ruby ontology, useful extensions (such as gems), a lot of documentation, and SciTE and freeride. Two very good Ides (and you can choose to install them).

Related Article

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.