[postgis-users] ERROR after geos install

Paragon Corporation lr at pcorp.us
Mon Mar 15 00:33:15 PDT 2010


Pedro,
 
I think this is a fairly common problem.
 
Most likely your liblwgeom.so is looking for geos in the wrong place or is
pointing at an older version of geos.
 
Do a 
 
ldd -d /usr/local/lib/liblwgeom.so 
 
or just to show the geos bindings
ldd -d /usr/local/lib/liblwgeom.so  | grep libgeos  
 
This will give you a clue where liblwgeom is looking.  Most likely it will
give a missing or something like that
 
Then you can symlink to the right location something like:
#To remove existing
rm /usr/lib/libgeos_c.so.1

#to link to right one -- change this accordingly to where you have geos
installed
ln -s /usr/local/lib/libgeos_c.so.1.6.0 /usr/lib/libgeos_c.so.1

Hope that helps,
Leo and Regina
http://www.postgis.us

________________________________

From: postgis-users-bounces at postgis.refractions.net
[mailto:postgis-users-bounces at postgis.refractions.net] On Behalf Of Pedro
Monteiro
Sent: Sunday, March 14, 2010 9:55 PM
To: postgis-users at postgis.refractions.net
Subject: [postgis-users] ERROR after geos install


Hi, I'm writing to ask for help with some misbehaviour of my postgis
database, after installing geos from EPEL on a Centos 5.2 server, getting
this error. 

"ERROR: could not load library "/usr/local/lib/liblwgeom.so":
libgeos_c.so.1: cannot open shared object file: No such file or directory"

I have already removed geos, and confirmed that the file exists with

Thank you in advance.

Pedro Monteiro






More information about the postgis-users mailing list