[postgis-users] RHEL-8 configure: error: could not find libpq

Regina Obe lr at pcorp.us
Tue Jul 20 12:33:58 PDT 2021


Maybe your PostgreSQL is not in system path for some reason.  That could
happen if you have multiple PostgreSQL installs.

Try running configure passing path to your pg config like so:

./configure --with-pgconfig= /usr/pgsql-12/bin/pg_config

> -----Original Message-----
> From: postgis-users [mailto:postgis-users-bounces at lists.osgeo.org] On
> Behalf Of Jan Peters
> Sent: Monday, July 19, 2021 7:54 AM
> To: postgis-users at lists.osgeo.org
> Subject: [postgis-users] RHEL-8 configure: error: could not find libpq
> 
> Hello,
> 
> I would like to compile postgis under RedHat 8 Enterprise. Unfortunately
the
> current configure fails with the following error message:
> 
> checking for PQserverVersion in -lpq.... no
> configure: error: could not find libpq
> 
> I have already installed the following packages
> 
> rpm -qa | grep libpq
> libpq-devel-12.5-1.el8_3.s390x
> libpq-12.5-1.el8_3.s390x
> 
> rpm -qa | grep postgresql
> postgresql-server-12.5-1.module+el8.3.0+9042+664538f4.s390x
> postgresql-12.5-1.module+el8.3.0+9042+664538f4.s390x
> postgresql-server-devel-12.5-1.module+el8.3.0+9042+664538f4.s390x
> postgresql-static-12.5-1.module+el8.3.0+9042+664538f4.s390x
> 
>  ls -alh /usr/lib64/libpq.so*
> lrwxrwxrwx 1 root root 13 Dec 1 2020 /usr/lib64/libpq.so -> libpq.so.5.12*
> lrwxrwx 1 root root 13 Dec 1 2020 /usr/lib64/libpq.so.5 -> libpq.so.5.12*
-
> rwxr-xr-x 1 root root 341K Dec 1 2020 /usr/lib64/libpq.so.5.12*
> 
> 
> 
> Can you guys help me with this problem?
> 
> 
> Best Regards
> 
> Jan
> _______________________________________________
> postgis-users mailing list
> postgis-users at lists.osgeo.org
> https://lists.osgeo.org/mailman/listinfo/postgis-users



More information about the postgis-users mailing list