Notes for installing ruby in Ubuntu

Source: Internet
Author: User
Here we are talking about installing ruby through apt-get In Ubuntu, so we will not need to compile ruby by ourselves. First, you must install both ruby and ruby-dev when installing ruby. The version is 1.8, so you should execute the following command sudoapt-getinstallruby1.8ruby1.8-devrubygems because many plugin or gems depend on the stuff below dev, for example, ferret will use a East called mkmf

Here we are talking about installing ruby through apt-get In Ubuntu, so we will not need to compile ruby by ourselves.

First, you must install both ruby and ruby-dev when installing ruby. The version is 1.8. Therefore, run the following command:

Sudo apt-get install ruby1.8 ruby1.8-dev rubygems

This is because many plug-ins or gems depend on the stuff in dev. For example, ferret will use something called mkmf, which is included in dev.

You can install rails using gem or apt-get, but we recommend the former because the version is definitely the latest. For example, if rails is not 1.2 In the source I use, it is not good to use apt-get.

The last step is to find out where these things are installed. You can run the find command in the root directory.

Sudo find-iname * ruby *> result.txt

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.