PDA

Archiv verlassen und diese Seite im Standarddesign anzeigen : PostgreSQL mit PostGIS



[moR-pH-euS]
27.03.08, 09:20
Hallo,
ich habe einen Debian 4.0 Server mit 2.6.8 Kernel. Ich habe jetzt über apt-get PostgreSQL 8.1 installiert und danach PostGis installiert. Wurde auch erfolgreich installiert und ich kann mich via pgAdmin III auch auf die Datenbank connecten und komme auch in meine Testdatenbank.


# dpkg -l | grep ii | grep post
ii postgis 1.1.6-2 geographic objects support for PostgreSQL --
ii postgresql-8.1 8.1.11-0etch1 object-relational SQL database, version 8.1
ii postgresql-cli 8.1.11-0etch1 front-end programs for PostgreSQL 8.1
ii postgresql-cli 71 manager for multiple PostgreSQL client versi
ii postgresql-com 71 manager for PostgreSQL database clusters


Wenn ich allerdings Gis für die Testdatenbank aktivieren will, findet er die lwpostgis.sql Datei nicht:


/$ psql -d test -f lwpostgis.sql
lwpostgis.sql: Datei oder Verzeichnis nicht gefunden

Mit find oder locate kann ich diese Datei auch nicht finden. Ich hatte zwischenzeitlich auch mal Postgis wieder deinstalliert via apt-get und mir die Sourcen gezogen, allerdings sagt er mir beim configure dann


/# cd /home/morpheus/postgis-1.3.2
217-20-118-193:/home/morpheus/postgis-1.3.2# ./configure
checking for gcc... gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking for g++... g++
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking whether ln -s works... yes
checking for iconv_open in -liconv... no
checking for libiconv_open in -liconv... no
checking for iconv_open in -lc... yes
checking how to run the C preprocessor... gcc -E
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking iconv.h usability... yes
checking iconv.h presence... yes
checking for iconv.h... yes
checking build system type... i686-pc-linux-gnu
checking host system type... i686-pc-linux-gnu
checking for pg_config... no
configure: error: PostgreSQL is required by PostGIS


Und die pg_config finde ich via find und locate auch nicht (obwohl die doch bei dem postgresql-client Paket dabei sein sollte).
Mache ich irgendetwas falsch oder wie bekomme ich jetzt PostGis für meine Postgre-DB aktiviert?
Danke schonmal im vorraus.

Roger Wilco
27.03.08, 11:40
http://www.pg-forum.de/postgis/2266-postgis-installation.html

Roger Wilco
27.03.08, 11:42
;1632287']Wenn ich allerdings Gis für die Testdatenbank aktivieren will, findet er die lwpostgis.sql Datei nicht:


/$ psql -d test -f lwpostgis.sql
lwpostgis.sql: Datei oder Verzeichnis nicht gefunden
http://packages.debian.org/search?searchon=contents&keywords=lwpostgis.sql


;1632287']
checking for pg_config... no
configure: error: PostgreSQL is required by PostGIS

http://packages.debian.org/etch/postgresql-dev

[moR-pH-euS]
27.03.08, 15:01
Danke, das war der Stein der Weisen.
Habe jetzt noch das postgresql-dev installiert und dann war natürlich auch die lwpostgis.sql vorhanden. Dankeschön.
Läuft jetzt alles