GEOS, a required geometry library, provides a utility called geos-config to enable software installations to locate the GEOS installation directory. Use this parameter (–with-geosconfig=/path/to/geos-config) to manually specify a particular GEOS installation that PostGIS will build against.
und wenn du diese option einfach weglaesst? die ist ja optional
hast du dashier beachtet?
There are several things to check when your installation or upgrade doesn’t go as you expected.
Check that you you have installed PostgreSQL 8.1 or newer, and that you are compiling against the same version of the PostgreSQL source as the version of PostgreSQL that is running. Mix-ups can occur when your (Linux) distribution has already installed PostgreSQL, or you have otherwise installed PostgreSQL before and forgotten about it. PostGIS will only work with PostgreSQL 8.1 or newer, and strange, unexpected error messages will result if you use an older version. To check the version of PostgreSQL which is running, connect to the database using psql and run this query:
SELECT version();
If you are running an RPM based distribution, you can check for the existence of pre-installed packages using the rpm command as follows: rpm -qa | grep postgresql
sowie
Also check that configure has correctly detected the location and version of PostgreSQL, the Proj4 library and the GEOS library.
The output from configure is used to generate the postgis_config.h file. Check that the POSTGIS_PGSQL_VERSION, POSTGIS_PROJ_VERSION and POSTGIS_GEOS_VERSION variables have been set correctly.
Ich verwende Postgres 8.4.1. Die Postgisvariablen werden doch erst beim Kompilieren von Postgres gesetzt, und soweit kommt er erst gar nicht. Im config.log steht unter Output variables:
…
PICFLAGS=’ -KPIC -DPIC’
PKG_CONFIG=’’
POSTGIS_BUILD_DATE=’’
POSTGIS_GEOS_VERSION=‘31’
POSTGIS_LIB_VERSION=’’
POSTGIS_MAJOR_VERSION=‘1’
POSTGIS_MICRO_VERSION=‘0’
POSTGIS_MINOR_VERSION=‘4’
POSTGIS_PGSQL_VERSION=‘84’
POSTGIS_PROJ_VERSION=’’
POSTGIS_SCRIPTS_VERSION=’’
POSTGIS_VERSION=’’
…
laut anleitung unter Chapter*2.*Installation
sind folgende schritte durchzufuehren (die version koennte im beispiel net stimmen):
tar xvfz postgis-1.4.0.tar.gz
cd postgis-1.4.0
[color="Red"]./configure[/color]
make
make install
createdb yourdatabase
createlang plpgsql yourdatabase
psql -d yourdatabase -f lwpostgis.sql
psql -d yourdatabase -f spatial_ref_sys.sql
hast du den 3. schritt durchgefuehrt?
(Nachtrag) … ich sehe - um diesen geht es gerade … in der doku oben solltest du nochmal pruefen was die optionen bedeuten … und ob du sie richtig einsetzt
Weiterhin - siehe Requirements:
Required >
PostgreSQL 8.1 or higher. A complete installation of PostgreSQL (including server headers) is required. PostgreSQL is available from > http://www.postgresql.org > .
GNU C compiler (gcc). Some other ANSI C compilers can be used to compile PostGIS, but we find far fewer problems when compiling with gcc.
GNU Make (gmake or make). For many systems, GNU make is the default version of make. Check the version by invoking make -v. Other versions of make may not process the PostGIS Makefile properly.
Proj4 reprojection library, version 4.5.0 or greater. The Proj4 library is used to provide coordinate reprojection support within PostGIS. Proj4 is available for download from > PROJ — PROJ 9.3.1 documentation > .
GEOS geometry library, version 3.0.0 or greater. The GEOS library is used to provide geometry tests (ST_Touches(), ST_Contains(), ST_Intersects()) and operations (ST_Buffer(), ST_Union(), ST_Difference()) within PostGIS. GEOS is available for download from > GEOS > .