Installing RubyonRails from source on Debian

Posted by admin, Mon Jan 21 11:06:00 UTC 2008

I'm installing a dedicated rails server. This is the documentation on getting things working on Debian stable.

Firstly, I chose to install ruby and rubygems from source because the packages in Debian Stable are a little older than I would like.

First thing to do is get a development environment installed on Debian. The quickest/simplest way is to install the build-essential pseudo package.

aptitude install build-essential

Then we need zlib libraries for ruby

aptitude install zlib1g-dev

Download the ruby source code and extract it

tar zxvf ruby-1.8.6-p111.tar.gz

cd ruby-1.8.6-p111
./configure
make
sudo make install

Download ruby gems and extract it

tar zxvf rubygems-1.0.1.tgz
cd rubygems-1.0.1
ruby ./setup.rb

Install rails

gem install rails

Install msyql

aptitude install mysql-server

and client libraries

aptitude install libmysqlclient15-dev

gem install mysql

and that's it done.

Filed Under: Linux Rails | Tags:

Comments

Have your say

A name is required. You may use HTML in your comments.