Here are the commands for building PostgreSQL from source. I use the 64-bit version of Debian Linux to build it with x64 libraries only.
#!/bin/bash
tar xvf postgresql-9.2.4.tar.bz2
cd postgresql-9.2.4
aptitude install gcc
aptitude install readline
aptitude install libreadline6-dev
aptitude install zlib
aptitude search zlib
aptitude install zlib-bin
aptitude search zlib
aptitude install zlib1g-dev
aptitude install make
aptitude install checkinstall
aptitude install flex
aptitude install bison
aptitude install libperl-dev
aptitude install tcl
aptitude install libauthen-simple-kerberos-perl
aptitude install libxml2-dev
aptitude install libxml-perl
aptitude install libxml-libxslt-perl libxslt-dev
aptitude install zlibc
./configure
make
mkdir /usr/local/pgsql
mkdir /usr/local/pgsql/include
mkdir /usr/local/pgsql/include/internal
mkdir /usr/local/pgsql/include/server
mkdir /usr/local/pgsql/include/informix
checkinstall
No comments:
Post a Comment