Now I tried to compile a 4.0.2 version.
First I configured it: ./configure -with-apache=/usr/src/apache_1.3.14 -with-pgsql=/usr/src/postgresql-7.0.2 -enable-safe-mode -enable-force-cgi-redirect
Then I executed make. These were the errors:
In file included from pgsql.c:29
php_pgsql.h:32: postgres.h: No such file or directory
php_pgsql.h:33: libpq-fe.h: No such file or directory
php_pgsql.h:39: libpq/libpq-fs.h: No such file or directory
make[3]: [pgsql.lo] Error 1
make[3]: Leaving directory '/usr/src/php-4.0.2/ext/pgsql'
make[2]: [all-recursive] Error 1
make[2]: Leaving directory '/usr/src/php-4.0.2/ext/pgsql'
make[1]: [all-recursive] Error 1
make[1]: Leaving directory '/usr/src/php-4.0.2/ext'
make: [all-recursive] Error 1
I searched for these files. The postgres.h is in the /usr/src/postgresql-7.0.2/src/include directory the libpq-fs.h is in the /usr/src/postgresql-7.0.2/src/include/libpq directory, but now I see that there's no libpq-fe.h
What now. Maybe somebody could help, who succeed in compiling php with these parameters
Thanks