Ubuntu is a great free, open source, enterprise-class, & stable version of Linux. You can easily install it from a single ISO image and it even works great on many laptops. Before compiling PostgreSQL from source you’ll want to install a few packages as follows:

[code]

$ sudo apt-get install build-essential

$ sudo apt-get install libreadline-dev

$ sudo apt-get install zlib1g-dev

$ sudo apt-get install flex

$ sudo apt-get install bison

$ sudo apt-get install libxml2-dev

$ sudo apt-get install libxslt-dev

$ sudo apt-get install libssl-dev

[/code]

With this complete, you can then do an industrial strength build of PostgreSQL as per below:

[code]

$ tar -xvf postgresql-9.2.x.tar.bz2

$ cd postgresql-9.2.x

$ ./configure –with-libxml –with-libxslt –with-openssl

$ make

[/code]