Ruby Step 1: Linux Installation

Source: Internet
Author: User
Linux installation: I used the source code compilation method for installation. The operating system is Red Hat Linux release 7.3 (Valhalla)

  1. Download from the ruby Main SiteSource code, "Get Ruby now!" on the right of the Home Page !! ", Which is 1.8.2 at present. decompress the package to the directory.
  2. ./Configure make install (root permission is required, which is installed under/usr/local by default. If you need to specify another directory, use./Configure -- prefix = custom path)

In this step, I have not encountered any problems. Next I will install rubygem, which is a rubyProgramPackage Manager, which is similar to the RPM of RedHat. it packages an independent Ruby application into a gem file, which can be easily installed and upgraded. This is much more convenient than Java, and gem can automatically manage the dependencies between packages, you can also automatically query, download, and manage packages from rubyforge. The current release is 0.8.10. We only need to manually install the gem once, you can install and manage other packages using the gem later. The gem is installed by default in Ruby one-click installer on Windows, therefore, even this step is omitted. Decompress rubygem and enter it in the corresponding directory.Ruby setup. RbAfter printing some logs on the screen, it will tell you that the installation is successful.Gem-VYou can view the gem installation version.

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.