[postgis-tickets] [PostGIS] #3423: CREATE EXTENSION postgis fails with "ERROR: could not load library "/usr/pgsql-9.5/lib/postgis-2.2.so": /usr/pgsql-9.5/lib/postgis-2.2.so: undefined symbol: GEOSClipByRect"
PostGIS
trac at osgeo.org
Wed Feb 10 16:52:37 PST 2016
#3423: CREATE EXTENSION postgis fails with "ERROR: could not load library
"/usr/pgsql-9.5/lib/postgis-2.2.so": /usr/pgsql-9.5/lib/postgis-2.2.so:
undefined symbol: GEOSClipByRect"
--------------------------+---------------------------
Reporter: motiumansky | Owner: pramsey
Type: defect | Status: new
Priority: medium | Milestone: PostGIS 2.2.2
Component: postgis | Version: 2.2.x
Resolution: | Keywords:
--------------------------+---------------------------
Comment (by dcalde):
I had the same error, but was able to fix it. If I had installed on a new
server, this would probably not have been a problem, but this server is
already running pg 9.4 with postgis 2.1.
I was merely running an old version of GEOS. A simple 'yum update geos'
did the trick.
{{{
[root at ip-10-0-4-58 data]# yum info geos
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
* base: centos.mirror.serversaustralia.com.au
* epel: epel.mirror.digitalpacific.com.au
* extras: mirror.ventraip.net.au
* updates: centos.mirror.serversaustralia.com.au
Installed Packages
Name : geos
Arch : x86_64
Version : 3.4.2
Release : 1.rhel7
Size : 1.8 M
Repo : installed
From repo : pgdg94
Summary : GEOS is a C++ port of the Java Topology Suite
URL : http://trac.osgeo.org/geos/
License : LGPLv2
Description : GEOS (Geometry Engine - Open Source) is a C++ port of the
Java Topology
: Suite (JTS). As such, it aims to contain the complete
functionality of
: JTS in C++. This includes all the OpenGIS "Simple Features
for SQL" spatial
: predicate functions and spatial operators, as well as
specific JTS topology
: functions such as IsValid()
Available Packages
Name : geos
Arch : x86_64
Version : 3.5.0
Release : 1.rhel7
Size : 540 k
Repo : pgdg95/7/x86_64
Summary : GEOS is a C++ port of the Java Topology Suite
URL : http://trac.osgeo.org/geos/
License : LGPLv2
Description : GEOS (Geometry Engine - Open Source) is a C++ port of the
Java Topology
: Suite (JTS). As such, it aims to contain the complete
functionality of
: JTS in C++. This includes all the OpenGIS "Simple Features
for SQL" spatial
: predicate functions and spatial operators, as well as
specific JTS topology
: functions such as IsValid()
[root at ip-10-0-4-58 data]# yum update geos
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
* base: centos.mirror.serversaustralia.com.au
* epel: epel.mirror.digitalpacific.com.au
* extras: mirror.ventraip.net.au
* updates: centos.mirror.serversaustralia.com.au
Resolving Dependencies
--> Running transaction check
---> Package geos.x86_64 0:3.4.2-1.rhel7 will be updated
---> Package geos.x86_64 0:3.5.0-1.rhel7 will be an update
--> Finished Dependency Resolution
Dependencies Resolved
}}}
--
Ticket URL: <https://trac.osgeo.org/postgis/ticket/3423#comment:16>
PostGIS <http://trac.osgeo.org/postgis/>
The PostGIS Trac is used for bug, enhancement & task tracking, a user and developer wiki, and a view into the subversion code repository of PostGIS project.
More information about the postgis-tickets
mailing list