Alexander Von Luenen wrote:

Hi,

unfortunately, I encountered the next problem. When running

 psql -d vob -U postgres -f lwpostgis.sql

I get the error

ERROR:  could not access file "$libdir/liblwgeom": No such file or directory

pg_config --pkglibdir returns '/opt/csw/postgresql/lib', liblwgeom.so.* is in 
there.

Running 'ldd /opt/csw/postgresql/lib/liblwgeom.so' returns

        libgeos_c.so.1 =>        /usr/local/lib/libgeos_c.so.1
        libproj.so.0 =>  /opt/csw/lib/libproj.so.0
        libgcc_s.so.1 =>         /usr/sfw/lib/libgcc_s.so.1
        libgeos-3.1.0.so =>      /usr/local/lib/libgeos-3.1.0.so
        libstdc++.so.6 =>        /usr/sfw/lib/libstdc++.so.6
        libm.so.2 =>     /lib/libm.so.2
        libm.so.1 =>     /lib/libm.so.1
        libc.so.1 =>     /lib/libc.so.1
        /platform/SUNW,T5440/lib/libc_psr.so.1

Is there something I am missing? Different versions? I have PostgreSQL 8.3.1 
installed from CSW, and have compiled PostGIS 1.3.6 w/ Proj4 4.4.8 (from CSW) 
and GEOS 3.1.0 (compiled from source).

TIA,
Alex


Hi Alex,

As you have quite rightly determined, if the file is present then this error normally indicates that one of the dependent libraries is missing. Note that you need to make sure that all of the dependent libraries are visible by the user that runs the PostgreSQL server; setting LD_LIBRARY_PATH in a console and using ldd will not make the libraries visible to you but not to the database server.


HTH,

Mark.

--
Mark Cave-Ayland - Senior Technical Architect
PostgreSQL - PostGIS
Sirius Corporation plc - control through freedom
http://www.siriusit.co.uk
t: +44 870 608 0063
_______________________________________________
postgis-users mailing list
[email protected]
http://postgis.refractions.net/mailman/listinfo/postgis-users

Reply via email to