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.