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:

</p>

<p>$ sudo apt-get install build-essential</p>

<p>$ sudo apt-get install libreadline-dev</p>

<p>$ sudo apt-get install zlib1g-dev</p>

<p>$ sudo apt-get install flex</p>

<p>$ sudo apt-get install bison</p>

<p>$ sudo apt-get install libxml2-dev</p>

<p>$ sudo apt-get install libxslt-dev</p>

<p>$ sudo apt-get install libssl-dev</p>

<p>

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

</p>

<p>$ tar -xvf postgresql-9.2.x.tar.bz2</p>

<p>$ cd postgresql-9.2.x</p>

<p>$ ./configure --with-libxml --with-libxslt --with-openssl</p>

<p>$ make</p>

<p>