[postgis-users] Problems installing PostGIS 2.0SVN on PostgreSQL 9.1

Mike Toews mwtoews at gmail.com
Sat Nov 19 21:54:05 PST 2011


On 18 November 2011 17:11, <webste2 at web.de> wrote:
> cd postgis-2.0.0SVN
> ./configure --with-pgconfig=/usr/local/pgsql/bin/pg_config
> make
> make install
It's a good idea to also run a [sudo] ldconfig command here
> createdb db
> createlang plpgsql db
>
> When loading postgis.sql definitions with...
>
> psql -d db -h localhost -p 5432 -U postgres -f /usr/local/pgsql/share/contrib/postgis-2.0/postgis.sql

There should only be one error, and you can stop psql on that with by
adding -v ON_ERROR_STOP=1 to your command

> ERROR:  could not load library "/usr/local/pgsql/lib/postgis-2.0.so": /usr/local/pgsql/lib/postgis-2.0.so: undefined symbol: GEOSRelatePatternMatch
> STATEMENT:  CREATE OR REPLACE FUNCTION spheroid_in(cstring)
> RETURNS spheroid
> AS '$libdir/postgis-2.0','ellipsoid_in'
> LANGUAGE 'C' IMMUTABLE STRICT;

This looks like your error. What version of GEOS do you have? For
PostGIS 2.0 you need GEOS 3.2.2 or higher.

-Mike



More information about the postgis-users mailing list