Installing Ruby on Rails on Ubuntu 10.04

I am really impressed with how Ubuntu 10.04 has resurrected an old computer of mine. The computer was running Windows XP and it was too slow to even start up. Now with Ubuntu 10.04 on it I can develop MySQL/Apache applications/servers with ease. As an experiment, I am going to see how this old computer handles running Ruby on Rails as well. This post describes how to install ruby on rails on a Ubuntu 10.04 server.

Open a terminal and enter the following command:

sudo apt-get install ruby-full build-essential

Install Apache

sudo apt-get install apache2 apache2-mpm-prefork apache2-prefork-dev

Install Mongrel

sudo a2enmod proxy
sudo a2enmod proxy_http
sudo a2enmod rewrite
sudo /etc/init.d/apache2 restart
sudo apt-get install mongrel

I have never heard of Mongrel but this is was I have learned:

"Mongrel is a small library that provides a very fast HTTP 1.1 server for Ruby web applications. It is not particular to
any framework, and is intended to be just enough to get a web application running behind a more complete and robust web

What makes Mongrel so fast is the careful use of an Ragel extension to provide fast, accurate HTTP 1.1 protocol parsing. "

Install Ruby Gems

tar xzvf rubygems-1.3.7.tgz
cd rubygems-1.3.7
sudo ruby setup.rb
sudo ln -s /usr/bin/gem1.8 /usr/bin/gem
sudo gem update --system

Install Rails

sudo gem install rails\

For an IDE/Text Editor there are a lot of options. I am familiar with Eclipse so I am using http://aptana.com/downloads/start


  1. What about MySQL, don't we need that ? See https://help.ubuntu.com/10.04/serverguide/C/ruby-on-rails.html

    1. Great Article IoT Projects for Students

      Deep Learning Projects for Final Year

      JavaScript Training in Chennai

      JavaScript Training in Chennai

      The Angular Training covers a wide range of topics including Components, Angular Directives, Angular Services, Pipes, security fundamentals, Routing, and Angular programmability. The new Angular TRaining will lay the foundation you need to specialise in Single Page Application developer. Angular Training

  2. amused after that I recommend Live Net TV you download Live Net TV Click Here for PC and also enjoy watching Live NetTV App specific TV networks.