Install Rails on Ubuntu8.10

Source: Internet
Author: User
With aptitude and gem, installing Rails on Ubuntu is not difficult, but you may encounter some problems during actual installation, such as missing some class libraries and updating versions. If an error occurs, you can check it online, but it takes a lot of time and effort to get it in for 1 or 2 hours. I installed three machines yesterday and today, and sorted out the steps for installing Rails2.2.2 on Ubuntu8.10. It took two hours for the first installation and 10 minutes for the last one. The procedure is as follows: 0. Prepare 0.0

With aptitude and gem, installing Rails on Ubuntu is not difficult, but you may encounter some problems during actual installation, such as missing some class libraries and updating versions. If an error occurs, you can check it online, but it takes a lot of time and effort to get it in for 1 or 2 hours. I installed three machines yesterday and today and sorted out the steps for installing Rails 2.2.2 on Ubuntu 8.10. The first installation took two hours, and the last one took only 10 minutes. The procedure is as follows:

0. Prepare

0.0 after Ubuntu 8.10 is installed, the network connection is normal.

0.1 modify the sourcelist of apt:

Sudo vi/etc/apt/source. list

By default, the provided source list is relatively slow. Comment out all the items and change them to a quicker one. If you do not have one, try this:

Deb http://ubuntu.cn99.com/ubuntu/ intrepid main restricted universe multiverse

Deb-src http://ubuntu.cn99.com/ubuntu/ intrepid main restricted universe multiverse

0.2 update the apt package list:

Sudo apt-get update

1. Install Ruby

1.1 install ruby

Sudo apt-get install ruby

Check: ruby-v => ruby 1.8.7

1.2 install ruby-dev

Sudo apt-get install ruby-dev

If you do not install openssl or sqlite3, an error will occur during some subsequent steps.

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.