Cannot find libpq-fe.h.

2004 Dec 15 at 23:19 » Tagged as :

The PHP installation I described yesterday had another twist, this time to do with the postgresql extension.

Fedora Core 3 distribution includes the RPMs for postgresql, the version is 7.4.6. Before upgrading to fedora I used to have a postgres 7.4.5 installed from source. Since I seemed to have doing nothing but ./configure, make, make install for the past month attempting to recompile either version from source was ruled out, but the RPM installation does not seem to have the libpq-fe.h and as a result php will not compile:

Cannot find libpq-fe.h. Please specify correct PostgreSQL installation path

The trick is to install just the header files and not the full applications. To do this change into the src/includes and src/interfaces folders in your postgresql source tree. Then do a make and make install. Folow it up by ./configure --with-pgsql as usual in your php source tree and then a make and make install.

That still leaves me with out the GD extension. When will this ever end?