[postgis-users] Fwd: CREATE EXTENSION postgis returns error

Saranya Kuniyil saranyak578 at gmail.com
Mon Feb 6 20:34:31 PST 2017

---------- Forwarded message ----------
From: Saranya Kuniyil <saranyak578 at gmail.com>
Date: Tue, Feb 7, 2017 at 10:02 AM
Subject: CREATE EXTENSION postgis returns error

When I use "CREATE EXTENSION postgis", I'm getting :
curs.execute("CREATE EXTENSION postgis;") psycopg2.InternalError: could not
load library "/usr/lib/postgresql/9.5/lib/postgis-2.3.so":
/usr/lib/liblwgeom-2.3.so.0: undefined symbol: GEOSClipByRect

Then I try to use

apt-get install liblwgeom-2.3 ....but it shows

Reading package lists... Done Building dependency tree
Reading state information... Done Note, selecting 'liblwgeom-2.3-0' for
regex 'liblwgeom-2.3' liblwgeom-2.3-0 is already the newest version
(2.3.1+dfsg-1.pgdg16.04+1). The following packages were automatically
installed and are no longer required: libcrypto++9v5 libpango1.0-0 Use
'sudo apt autoremove' to remove them. 0 upgraded, 0 newly installed, 0 to
remove and 21 not upgraded.

how can I fix it?

Thank you
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/postgis-users/attachments/20170207/db24b3c4/attachment.html>

More information about the postgis-users mailing list