Trying to build postgis on centos10

Niklas Baudy niklas.baudy at vanniktech.de
Sat Feb 1 00:28:15 PST 2025


Hey,

I've never used such a mailing list so please let me know if I'm using 
this incorrectly. I'm trying to build postgis on centos10 and I'm stuck, 
these are my commands:

dnf config-manager --set-enabled crb
dnf install perl-IPC-Run
dnf install postgresql16-devel gcc geos-devel proj-devel gdal-devel 
json-c-devel libxml2-devel
wget https://postgis.net/stuff/postgis-3.5.3dev.tar.gz
tar -xvzf postgis-3.5.3dev.tar.gz
rm postgis-3.5.3dev.tar.gz
cd postgis-3.5.3dev
./configure --with-pgconfig=/usr/pgsql-16/bin/pg_config 
--with-gdalconfig=/usr/bin/gdal-config 
--with-geosconfig=/usr/bin/geos-config

It fails with: configure: error: could not find libpq.

 > find / -name 'libpq.so*'

/usr/pgsql-16/lib/libpq.so.5.16
/usr/pgsql-16/lib/libpq.so.5
/usr/pgsql-16/lib/libpq.so
/usr/lib64/libpq.so.5
/usr/lib64/libpq.so
/usr/lib64/libpq.so.5.17

How can I let the configure script know about these locations?


Thanks!
-niklas


More information about the postgis-users mailing list