[postgis-users] problem with geos when running regress tests

ricardd at mathstat.dal.ca ricardd at mathstat.dal.ca
Thu Jul 27 12:16:57 PDT 2006


Hello,
I'm installing the latest GEOS and postGIS on an Ubuntu distribution.

postgresql was built from source and is up and running.

GEOS installation went well and the libraries are installed in
/usr/local/lib:

*******************************************************
postgres at octopus-desktop:$ ls /usr/local/lib | grep geos
libgeos.a
libgeos_c.a
libgeos_c.la
libgeos_c.so
libgeos_c.so.1
libgeos_c.so.1.1.1
libgeos.la
libgeos.so
libgeos.so.2
libgeos.so.2.2.3
*******************************************************

postgis configure and make went well but I'm getting an error when running
the regress tests. The regress log says:

*******************************************************
psql:lwpostgis.sql:39: ERROR:  could not load library
"/downloads/postgresql-8.1.4/contrib/postgis-1.1.3/lwgeom/liblwgeom.so.1.1":
libgeos_c.so.1: cannot open shared object file: No such file or directory
*******************************************************

Somehow, liblwgeom.so.1.1 isn't finding libgeos_c.so.1:

********************************************************
postgres at octopus-desktop:$ ldd
/downloads/postgresql-8.1.4/contrib/postgis-1.1.3/lwgeom/liblwgeom.so.1.1
        linux-gate.so.1 =>  (0xffffe000)
        libgeos_c.so.1 => not found
        libproj.so.0 => /usr/lib/libproj.so.0 (0xb7ee4000)
        libc.so.6 => /lib/tls/i686/cmov/libc.so.6 (0xb7db5000)
        libm.so.6 => /lib/tls/i686/cmov/libm.so.6 (0xb7d92000)
        /lib/ld-linux.so.2 (0x80000000)
********************************************************

What can I do to fix this? I added /usr/local/lib to LD_LIBRARY_PATH but
I'm still getting the same error.
Cheers,

Dan





More information about the postgis-users mailing list