Trying to build postgis on centos10

Regina Obe lr at pcorp.us
Sat Feb 1 21:37:35 PST 2025


Hmm I would have expected that to work.  To be honest, I've never tried building postgis from source on Centos.  I just always use the packages from yum.postgresql.org

I suppose it could be for whatever reason the paths aren't set and pointing at pg_config is not sufficent.  When I build under windows, I always set my paths.

Before starting your compile try

export PATH=/usr/pgsql-16/bin:/usr/pgsql-16/lib:$PATH



> -----Original Message-----
> From: Niklas Baudy <niklas.baudy at vanniktech.de>
> Sent: Saturday, February 1, 2025 3:28 AM
> To: postgis-users at lists.osgeo.org
> Subject: Trying to build postgis on centos10
> 
> 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