ListArc » English » Computer and Internet » PostGIS : postgis-users » Problems+Installing+PostGIS+2.0SVN+On+PostgreSQL+9.1


Problems+Installing+...


20-11-2011 09:54 AM
1


On 18 November 2011 17:11, <> 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
_______________________________________________
postgis-users mailing list
postgis-
http://postgis.refractions.net/mailman/listinfo/postgis-users
)



21-11-2011 01:41 AM
2


I had two version of GEOS... solved it by removing the older one... running GEOS 3.3.1 now


-----Ursprüngliche Nachricht-----
Von: "Mike Toews" <>
Gesendet: 20.11.2011 06:54:05
An: "PostGIS Users Discussion"
Betreff: Re: [postgis-users] Problems installing PostGIS 2.0SVN on PostgreSQL 9.1

>On 18 November 2011 17:11, <> 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
>_______________________________________________
>postgis-users mailing list
>postgis-
>http://postgis.refractions.net/mailman/listinfo/postgis-users


___________________________________________________________
SMS schreiben mit WEB.DE FreeMail - einfach, schnell und
kostenguenstig. Jetzt gleich testen! http://f.web.de/?mc=021192
_______________________________________________
postgis-users mailing list
postgis-
http://postgis.refractions.net/mailman/listinfo/postgis-users