Twitter iPhone pliant OnePlus 11 PS5 Disney+ Orange Livebox Windows 11

compiler phph avec pgsql : erreur libpq-fe.h

1 réponse
Avatar
Laurent Briere
Bonjour,

Je souhaite compiler php avec le support de pgsql, mais j'obtient
l'erreur suivante :

" configure: error: Cannot find libpq-fe.h. Please specify correct
PostgreSQL installation path "

Ma ligne de commande est la suivante :

[root@rh1 php-4.3.6]# ./configure
--with-pgsql=/root/postgresql-7.4.1/src/include/libpq --with-mysql
--with-zlib --with-bcmath --with-calendar --with-ctype --with-domxml
--with-ftp --with-gd --with-session --with-sockets --with-standard
--with-xml

Et le fichier libpq-fe.h est bien présent dans le répertoire spécifié
dans la directive --with-pgsql

Merci de votre aide

Laurent

1 réponse

Avatar
Paul Delannoy
Laurent Briere a écrit:
Bonjour,

Je souhaite compiler php avec le support de pgsql, mais j'obtient
l'erreur suivante :

" configure: error: Cannot find libpq-fe.h. Please specify correct
PostgreSQL installation path "

Ma ligne de commande est la suivante :

[ php-4.3.6]# ./configure
--with-pgsql=/root/postgresql-7.4.1/src/include/libpq --with-mysql
--with-zlib --with-bcmath --with-calendar --with-ctype --with-domxml
--with-ftp --with-gd --with-session --with-sockets --with-standard
--with-xml

Et le fichier libpq-fe.h est bien présent dans le répertoire spécifié
dans la directive --with-pgsql
... mais celle-ci n'indique pas le bon fichier...

--with-pgsql=/root/postgresql-7.4.1/src/include/libpq
**N'EST PAS EGAL A**
--with-pgsql=/root/postgresql-7.4.1/src/include/libpq-fe !!!