[gdal-dev] problem with loading libraries

Ari Jolma ari.jolma at gmail.com
Thu Nov 22 10:43:00 PST 2018


I figured out a solution to the problem. The library is loaded by the 
postgres process, so it needs to have its library path appended. The 
simplest way is to start it with command

LD_LIBRARY_PATH=<library paths> pg_ctl -D database start

Ari

Ari Jolma kirjoitti 22.11.2018 klo 17.06:
> Sorry, this is not strictly a GDAL question, but it is related.
>
> I have built postgis with raster support, which required gdal. Now, 
> when I
>
> CREATE EXTENSION postgis;
>
> I get
>
> ERROR:  could not load library 
> "/home/ajolma/ods/server/parts/postgresql/lib/postgis-2.5.so": 
> libgeos_c.so.1: cannot open shared object file: No such file or directory
>
> However, postgis-2.5.so finds libgeos:
>
> ldd parts/postgresql/lib/postgis-2.5.so
>
> does not show anything missing -- but it also does not show libgdal.
>
> I have paths to gdal and other libs in LD_LIBRARY_PATH. I don't want 
> to make the libraries known to run-time linker with ldconfig since 
> that would make them global(?) and this system should be strictly 
> non-global in the system (there are several database servers etc 
> running).
>
> Any ideas what could be the issue?
>
> Ari
>
>


More information about the gdal-dev mailing list