[postgis-users] gdal version for Postgis 2.4

Zwettler Markus (OIZ) Markus.Zwettler at zuerich.ch
Tue Mar 10 02:23:04 PDT 2020


[root at tstm49003 lib]# rpm -aq | grep postgis
postgis24_96-2.4.8-7.rhel7.x86_64
postgis24_96-client-2.4.8-7.rhel7.x86_64
[root at tstm49003 lib]# rpm -aq | grep gdal
gdal-libs-1.11.4-12.rhel7.x86_64
gdal23-libs-2.3.2-8.rhel7.x86_64
gdal30-libs-3.0.4-2.rhel7.x86_64
[root at tstm49003 lib]# rpm -e gdal30-libs-3.0.4-2.rhel7.x86_64 --nodeps
[root at tstm49003 lib]# rpm -aq | grep gdal
gdal-libs-1.11.4-12.rhel7.x86_64
gdal23-libs-2.3.2-8.rhel7.x86_64
[root at tstm49003 lib]# cat /etc/ld.so.conf.d/gdal23-pgdg-libs.conf
/usr/gdal23/lib/
[root at tstm49003 lib]# ldconfig

Result: ERROR:  could not load library "/usr/pgsql-9.6/lib/rtpostgis-2.4.so": libgdal.so.26: cannot open shared object file: No such file or directory

 [root at tstm49003 lib]# ldd /usr/pgsql-9.6/lib/rtpostgis-2.4.so
        linux-vdso.so.1 =>  (0x00007ffcf81f2000)
        libgdal.so.26 => not found
        libgeos_c.so.1 => /usr/geos37/lib64/libgeos_c.so.1 (0x00007fa7e350f000)
...

My rpm (coming from the official pgdg channel) is build against gdal 3.0.4.

Is there an rpm build against gdal23?

-Markus




> -----Ursprüngliche Nachricht-----
> Von: postgis-users <postgis-users-bounces at lists.osgeo.org> Im Auftrag von
> Paul Ramsey
> Gesendet: Montag, 9. März 2020 17:20
> An: PostGIS Users Discussion <postgis-users at lists.osgeo.org>
> Betreff: Re: [postgis-users] gdal version for Postgis 2.4
> 
> 
> 
> > On Mar 9, 2020, at 8:51 AM, Zwettler Markus (OIZ) <Markus.Zwettler at zuerich.ch>
> wrote:
> >
> > QUESTIONS:
> > Does Postgis 2.4 depend on gdal23?
> 
> Not at a source code level. It’s probably possible to compile PostGIS 2.4 against
> more modern GDAL.
> 
> > Is there a bug with the rpm dependency?
> 
> Yes.
> 
> > How to fix this?
> 
> Remove the new gdal and put an old one back in. Run ldconfig to refresh the
> linker. Report the mistake to the pgdg yum redmine bug tracker.
> 
> P
> 
> _______________________________________________
> 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