[postgis-users] Error using PostGIS and GEOM

Mark Cave-Ayland mark.cave-ayland at siriusit.co.uk
Wed Feb 25 02:14:36 PST 2009


???(Sinboy Zhang) wrote:

> I got the same problem.
> 
> OS:CentOS 5.2
> PostgreSQL:8.2.6
> Geos:3.0.0
> proj:4.6.0
> postgis:1.3.2
> 
> A few months ago,i installed them successully on Fedora 7,now a error 
> boked when i installed on CentOS:
> 
> ERROR:  could not load library "/usr/local/postgis/lib/liblwgeom.so": 
> libgeos_c.so.1:
> 
> cannot open shared object file: No such file or directory
> 
> But the file liblwgeom.so was existed surely in /usr/local/postgis/lib, 
> i added /usr/local/postgis/lib to /etc/ld.conf.d/local.conf and execute 
> ldconfig ,final restart postgresql ,but the error still exist.

The error is telling you that PostgreSQL can't see libgeos_c.so.1 - you 
need to add the location of this file (normally /usr/local/lib) to 
/etc/ld.conf.d/local.conf and then run ldconfig so the OS can see it. On 
some older machines you may also have to restart the PostgreSQL server too.


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



More information about the postgis-users mailing list