[postgis-devel] psql -d test -f lwpostgis.sql fails with undefined symbol error

strk at refractions.net strk at refractions.net
Wed Jan 18 14:04:11 PST 2006


On Wed, Jan 18, 2006 at 04:59:57PM -0500, Adam Walker wrote:

> postgres at bill:~$ ldd /usr/local/pgsql/lib/liblwgeom.so.1.1 /usr/local/lib/libgeos_c.so.1
> /usr/local/pgsql/lib/liblwgeom.so.1.1:
>         libgeos_c.so.1 => /usr/local/lib/libgeos_c.so.1 (0x00002aaaaac0f000)
>         libgeos.so.2 => /usr/lib/libgeos.so.2 (0x00002aaaab09c000)

mmm.. you also have /usr/local/lib/libgeos.so.2 I suppose...
This should be fixed when we switch to the C++ library
naming convention following release number, as in
libgeos-3.0.0.so

Another way to handle this could be using -rpath to require
libgeos_c.so to use a specific libgeos.so based on full
path but I don't like being forced to keep libraries in
a specific directory.

In your case the fix should be moving /usr/lib/libgeos.so.2
away (try renaming it to something else)

--strk;




More information about the postgis-devel mailing list