Cannot find libpq-fe.h.

December 16, 2004

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?

Posted by raditha at December 16, 2004 4:49 AM
Your Ad Here

 

Jabber  |  Linux  |  mySQL  |  PHP  |  Java  |  Site Map  |  Wiki

Downloads  |  About  |  Links  |  Contact  |  Home

 

Copyright © Raditha Dissanayake 2003 - 2007

Terms of Use  |  Privacy

 

 

December 2004
Sun Mon Tue Wed Thu Fri Sat
      1 2 3 4
5 6 7 8 9 10 11
12 13 14 15 16 17 18
19 20 21 22 23 24 25
26 27 28 29 30 31