Main Tutorials

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.

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

About Author

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

Comments

Subscribe
Notify of
1 Comment
Most Voted
Newest Oldest
Inline Feedbacks
View all comments
rma
12 years ago

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?