pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: PG Bug reporting form <noreply@postgresql.org>
To: pgsql-bugs@lists.postgresql.org
Cc: kop@karlpinc.com
Subject: BUG #15877: Cannot CREATE EXTENSION for  postgis 2.4 because of missing gdal23-libs ldconfig path
Date: Thu, 27 Jun 2019 02:46:54 +0000
Message-ID: <15877-023bd263ded090b8@postgresql.org> (raw)

The following bug has been logged on the website:

Bug reference:      15877
Logged by:          Karl Pinc
Email address:      kop@karlpinc.com
PostgreSQL version: 10.9
Operating system:   Red Hat Enterprise Linux Server release 7.6 (Maipo
Description:        

Other installed packages:
postgis24_10.x86_64                    2.4.7-3.rhel7                    
@pgdg10
gdal-libs.x86_64                      1.11.4-12.rhel7                   
@pgdg10
gdal23-libs.x86_64                    2.3.2-7.rhel7                     
@pgdg10

I tried restoring a database with postgis installed in it and could not:

$ pg_restore -U babase_admin -1 -d karl_test < /tmp/babase_test.custom 
pg_restore: [archiver (db)] Error while PROCESSING TOC:
pg_restore: [archiver (db)] Error from TOC entry 2; 3079 320225 EXTENSION
postgis 
pg_restore: [archiver (db)] could not execute query: ERROR:  could not load
library "/usr/pgsql-10/lib/rtpostgis-2.4.so": libgdal.so.20: cannot open
shared object file: No such file or directory
    Command was: CREATE EXTENSION IF NOT EXISTS postgis WITH SCHEMA
postgis;

The fix was to add the file: /etc/ld.so.conf.d/gdal23-pgdg-libs.conf
The content is:
  /usr/gdal23/lib/

Then, I ran: ldconfig

I suspect that someone needs to add /usr/gdal23/lib to whatever rpm package
configures ldconfig
for postgis.  There is a /etc/ld.so.conf.d/geos37-pgdg-libs.conf file from
the geos37 package,
so maybe the gdal23-libs package needs to do the same thing?

Thanks for your attention.



Message-ID: <15877-023bd263ded090b8@postgresql.org>
Permalink:  ../15877-023bd263ded090b8@postgresql.org/
Also on:    postgresql.org/message-id/15877-023bd263ded090b8@postgresql.org

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-bugs@postgresql.org
  Cc: noreply@postgresql.org, kop@karlpinc.com
  Subject: Re: BUG #15877: Cannot CREATE EXTENSION for  postgis 2.4 because of missing gdal23-libs ldconfig path
  In-Reply-To: <15877-023bd263ded090b8@postgresql.org>
  References: <15877-023bd263ded090b8@postgresql.org>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox