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

Daniel Ricard ricardd at mathstat.dal.ca
Fri Jul 28 10:48:30 PDT 2006


Hello,
I fixed my problem with GEOS.

I added "/usr/local/lib" (where GEOS is located) to /etc/ld.so.conf and ran 
ldconfig as root. The library is now recognised and the regress tests run.

Also, some of the regress tests choked because they were expecting postgresql 
to be running on /var/run/postgresql whereas the default location is /tmp/. I 
fixed this by creating a /var/run/postgresql directory and adding a symbolic 
link to /tmp/.s.PGSQL.5432
Cheers,

Dan


----------  Message transmis  ----------

Subject: problem with geos when running regress tests
Date: Jeudi 27 Juillet 2006 16:16
From: ricardd at mathstat.dal.ca
To: postgis-users at postgis.refractions.net

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