How to compile PostgreSQL database source code in linux

It’s been a long time i didnt update my blog, recently i’m busy research on Hyper Estraier , it is a powerful full text search engine written in c, i will write some information about it future.

Ok i provide following steps to show how to compile PostgreSQL database source code in linux.

1) Please visit postgres website to get latest source. I will get a latest v8.3.3 source for demonstration.

http://www.postgresql.org/ftp/

how-to-compile-postgres-1

2) Changed to your postgres source path and type following command, please change your file name accordingly

tar -zxvf postgresql-8.3.1.tar.gz

it will extract all source code into current path.

3) Please change to your postgres source code file path and type “./configure”, it will configure some necessary information for PostgreSQL

./configure 

4) Type “make”, this will compile PostgreSQL source code

make

5) If anything ok, just issue final command to install PostgreSQL in your linux

make install

After you installed PostgreSQL in your linux, it is required to do some configuration in order to connect to your PostgreSQL, please visit here to read more about it.

http://www.mkyong.com/database/how-to-install-postgresql-in-fedora-core/

About the Author

author image
mkyong
Founder of Mkyong.com, love Java and open source stuff. Follow him on Twitter, or befriend him on Facebook or Google Plus. If you like my tutorials, consider make a donation to these charities.

Comments

avatar
2 Comment threads
0 Thread replies
0 Followers
 
Most reacted comment
Hottest comment thread
1 Comment authors
PostgreSQL no Mac OS X Lion | onoxrma Recent comment authors
newest oldest most voted
trackback
PostgreSQL no Mac OS X Lion | onox

[…] Onde baixar o código e como compilá-lo […]

rma
Guest
rma

hi there.. currently im doing step 3 and when i type ./config, there were an error said ‘cannot find install -sh or install.sh in config “.”/config’. why this terror happen?