SUPPORT THE SITE WITH A CLICK

Subscribe Rss:

SUPPORT THE SITE WITH A CLICK

Thursday, March 27, 2008

Installing Rails on Linux-Ubuntu (step-by-step tutorial)

Ruby On Linux

Depending on the distribution you are using, there are several ways to install Ruby. The first option is simply to download the source code and compile by hand. However, on some platforms, there are package management solutions that make installing Ruby extremely easy.

For example, on Debian or Ubuntu apt-get provides an easy and elegant solution:

% sudo apt-get install ruby irb rdoc

For irb and rdoc you will need to enable the universe repository.

% sudo apt-get install rubygems

% sudo gem install rails -y


then install the database

% apt-­get install mysql­server libmysql­ruby