AW: [Mapserver-DE] PostGIs unter Suse9
Elstermann, Mike
Mike.Elstermann at itc-halle.de
Mon Sep 6 16:50:12 CEST 2004
ich habe mir mal folgendes "kochbuch" gemacht uns damit ganz gute
erfahrungen.
die installation hat schon auf verschiedensten "GISten" ([G]Kiste=Server)
funktioniert.
MapServer-Installaton unter Suse 9.0
0. Systemvoraussetzungen:
Gcc, gcc++
make
freetype + devel
zlib + devel
libpng + devel
gd + devel
readline + devel
bison
flex
1. GD2.0.15
./configure
make
make install
2. GEOS
./configure
make
make install
/sbin/ldconfig
3. PostgreSQL
./configure
make
make install
user postgres via yast hizufügen
mkdir /usr/local/pgsql/data
chown postgres /usr/local/pgsql/data
su - postgres
/usr/local/pgsql/bin/initdb -D /usr/local/pgsql/data
/usr/local/pgsql/bin/postmaster -D /usr/local/pgsql/data &
/usr/local/pgsql/bin/createdb test
/usr/local/pgsql/bin/psql test
4. PostGIS
Kopieren ins CONTRIB-Verzeichnis der Quellen des PostgreSQL
tar -xvf
im Makefile "USR_PROJ=0" setzen, falls keine projection genutzt
werden soll
make
make install
createdb yourtestdatabase
createlang plpgsql yourtestdatabase
psql -d yourtestdatabase -f postgis.sql (im
CONTRIB/POSTGIS-CVS-Pfad)
psql -d yourtestdatabase -f spatial_ref_sys.sql
5. Mapserver
./configure --with-postgis=/usr/local/pgsql/bin/pg_config
--with-gd=/usr/local --with-png=/usr/local
make
make install
Für Rückfragen stehe ich Ihnen gern zur Verfügung.
::: mfg. Mike Elstermann [mikeE.], Teamleiter GIS/e-Solutions
::: IT-Consult Halle GmbH, Bornknechtstraße 5, 06108 Halle (Saale)
::: Sitz: Große Nikolaistraße 8
::: Tel.: +49 345 221 4237, Fax: +49 345 221 4236, mobil: +49 160 71 545 02
::: mike.elstermann at itc-halle.de ::: http://www.itc-halle.de
::: GeoDaten Online? -> http://halgis.halle.de; http://umweltatlas.halle.de
-----Ursprüngliche Nachricht-----
Von: JJWag [mailto:jj.wag at gmx.de]
Gesendet: Montag, 6. September 2004 16:48
An: mapserver-de at freegis.org
Betreff: [Mapserver-DE] PostGIs unter Suse9
Hallo Liste,
ich versuche PostGIS auf folgendem System zu installieren und bin kurz vorm
Infarkt:
- SUSE 9.0
-POSTGRE 7.4.5
-POSTGIS 0.8.2
POSTGRE wurde im Verzeichnis "/usr/local/pgsql" installiert und läuft.
Im Makefile von PostGIS habe ich die Variablen für USE_PROJ und USE_GEOS auf
0 gesetzt, da ich beide Libraries nicht installiert habe.
beim Ausführen von gmake zum Übersetzen des Quelltextes von PostGIS kommt es
zu folgenden Fehlermeldungen:
axel:~/postgresql/contrib/postgis # gmake
gcc -O2 -fno-strict-aliasing -Wall -Wmissing-prototypes -Wmissing-declaratio
ns -g -fexceptions -I. -DFRONTEND -DSYSCONFDIR='"/usr/local/pgsql/etc"' -D
USE_VERSION=74 -DUSE_STATS -fpic -I../../src/include -D_GNU_SOURCE -c -o
postgis_debug.o postgis_debug.c
gcc -O2 -fno-strict-aliasing -Wall -Wmissing-prototypes -Wmissing-declaratio
ns -g -fexceptions -I. -DFRONTEND -DSYSCONFDIR='"/usr/local/pgsql/etc"' -D
USE_VERSION=74 -DUSE_STATS -fpic -I../../src/include -D_GNU_SOURCE -c -o
postgis_ops.o postgis_ops.c
gcc -O2 -fno-strict-aliasing -Wall -Wmissing-prototypes -Wmissing-declaratio
ns -g -fexceptions -I. -DFRONTEND -DSYSCONFDIR='"/usr/local/pgsql/etc"' -D
USE_VERSION=74 -DUSE_STATS -fpic -I../../src/include -D_GNU_SOURCE -c -o
postgis_fn.o postgis_fn.c
gcc -O2 -fno-strict-aliasing -Wall -Wmissing-prototypes -Wmissing-declaratio
ns -g -fexceptions -I. -DFRONTEND -DSYSCONFDIR='"/usr/local/pgsql/etc"' -D
USE_VERSION=74 -DUSE_STATS -fpic -I../../src/include -D_GNU_SOURCE -c -o
postgis_inout.o postgis_inout.c
gcc -O2 -fno-strict-aliasing -Wall -Wmissing-prototypes -Wmissing-declaratio
ns -g -fexceptions -I. -DFRONTEND -DSYSCONFDIR='"/usr/local/pgsql/etc"' -D
USE_VERSION=74 -DUSE_STATS -fpic -I../../src/include -D_GNU_SOURCE -c -o
postgis_proj.o postgis_proj.c
gcc -O2 -fno-strict-aliasing -Wall -Wmissing-prototypes -Wmissing-declaratio
ns -g -fexceptions -I. -DFRONTEND -DSYSCONFDIR='"/usr/local/pgsql/etc"' -D
USE_VERSION=74 -DUSE_STATS -fpic -I../../src/include -D_GNU_SOURCE -c -o
postgis_chip.o postgis_chip.c
gcc -O2 -fno-strict-aliasing -Wall -Wmissing-prototypes -Wmissing-declaratio
ns -g -fexceptions -I. -DFRONTEND -DSYSCONFDIR='"/usr/local/pgsql/etc"' -D
USE_VERSION=74 -DUSE_STATS -fpic -I../../src/include -D_GNU_SOURCE -c -o
postgis_transform.o postgis_transform.c
gcc -O2 -fno-strict-aliasing -Wall -Wmissing-prototypes -Wmissing-declaratio
ns -g -fexceptions -I. -DFRONTEND -DSYSCONFDIR='"/usr/local/pgsql/etc"' -D
USE_VERSION=74 -DUSE_STATS -fpic -I../../src/include -D_GNU_SOURCE -c -o
postgis_gist_72.o postgis_gist_72.c
gcc -O2 -fno-strict-aliasing -Wall -Wmissing-prototypes -Wmissing-declaratio
ns -g -fexceptions -I. -DFRONTEND -DSYSCONFDIR='"/usr/local/pgsql/etc"' -D
USE_VERSION=74 -DUSE_STATS -fpic -I../../src/include -D_GNU_SOURCE -c -o
postgis_estimate.o postgis_estimate.c
gcc -O2 -fno-strict-aliasing -Wall -Wmissing-prototypes -Wmissing-declaratio
ns -g -fexceptions -I. -DFRONTEND -DSYSCONFDIR='"/usr/local/pgsql/etc"' -D
USE_VERSION=74 -DUSE_STATS -fpic -I../../src/include -D_GNU_SOURCE -c -o
postgis_geos.o postgis_geos.c
gcc -O2 -fno-strict-aliasing -Wall -Wmissing-prototypes -Wmissing-declaratio
ns -g -fexceptions -I. -DFRONTEND -DSYSCONFDIR='"/usr/local/pgsql/etc"' -D
USE_VERSION=74 -DUSE_STATS -fpic -I../../src/include -D_GNU_SOURCE -c -o
postgis_algo.o postgis_algo.c
ar crs libpostgis.a postgis_debug.o postgis_ops.o postgis_fn.o
postgis_inout.o postgis_proj.o postgis_chip.o postgis_transform.o
postgis_gist_72.o postgis_estimate.o postgis_geos.o postgis_algo.o
ranlib libpostgis.a
gcc -O2 -fno-strict-aliasing -Wall -Wmissing-prototypes -Wmissing-declaratio
ns -g -fexceptions -I. -DFRONTEND -DSYSCONFDIR='"/usr/local/pgsql/etc"' -D
USE_VERSION=74 -DUSE_STATS -fpic -shared -Wl,-soname,libpostgis.so.0
postgis_debug.o postgis_ops.o postgis_fn.o postgis_inout.o postgis_proj.o
postgis_chip.o postgis_transform.o postgis_gist_72.o postgis_estimate.o
postgis_geos.o
stgis_algo.o -L../../src/port -L../../src/port -Wl,-rpath,/usr/local/pgsq
l/lib -o libpostgis.so.0.8
rm -f libpostgis.so.0
ln -s libpostgis.so.0.8 libpostgis.so.0
rm -f libpostgis.so
ln -s libpostgis.so.0.8 libpostgis.so
cpp -P -traditional-cpp -DUSE_VERSION=74 postgis.sql.in | sed -e
's:@MODULE_FILENAME@:\$libdir/libpostgis.so.0.8:g;s:@POSTGIS_VERSION@:0.8
USE_GEOS=0 USE_PROJ=0 USE_STATS=1:g' > postgis.sql
perl create_undef.pl postgis.sql 74 > postgis_undef.sql
gmake -C loader
gmake[1]: Entering directory
`/root/juergen/postgresql/contrib/postgis/loader'
gcc -g -I.. -I. -I../../../src/interfaces/libpq -O2 -fno-strict-aliasing -Wa
ll -Wmissing-prototypes -Wmissing-declarations -DFRONTEND -DSYSCONFDIR='"/us
r/local/pgsql/etc"' -DUSE_VERSION=73 -I../../../src/include -D_GNU_SOURCE
-c -o shpopen.o shpopen.c
shpopen.c:176: warning: `rcsid' defined but not used
gcc -g -I.. -I. -I../../../src/interfaces/libpq -O2 -fno-strict-aliasing -Wa
ll -Wmissing-prototypes -Wmissing-declarations -DFRONTEND -DSYSCONFDIR='"/us
r/local/pgsql/etc"' -DUSE_VERSION=73 -I../../../src/include -D_GNU_SOURCE
-c -o dbfopen.o dbfopen.c
dbfopen.c:200: warning: `rcsid' defined but not used
gcc -g -I.. -I. -I../../../src/interfaces/libpq -O2 -fno-strict-aliasing -Wa
ll -Wmissing-prototypes -Wmissing-declarations -DFRONTEND -DSYSCONFDIR='"/us
r/local/pgsql/etc"' -DUSE_VERSION=73 -I../../../src/include -D_GNU_SOURCE
-c -o getopt.o getopt.c
gcc -g -I.. -I. -I../../../src/interfaces/libpq -O2 -fno-strict-aliasing -Wa
ll -Wmissing-prototypes -Wmissing-declarations -DFRONTEND -DSYSCONFDIR='"/us
r/local/pgsql/etc"' -DUSE_VERSION=73 -I../../../src/include -D_GNU_SOURCE
-c -o shp2pgsql.o shp2pgsql.c
gcc -g -I.. -I. -I../../../src/interfaces/libpq -O2 -fno-strict-aliasing -Wa
ll -Wmissing-prototypes -Wmissing-declarations -DFRONTEND -DSYSCONFDIR='"/us
r/local/pgsql/etc"' -DUSE_VERSION=73 shpopen.o dbfopen.o getopt.o
shp2pgsql.o -L../../../src/port -Wl,-rpath,/usr/local/pgsql/lib -o
shp2pgsql
gcc -g -I.. -I. -I../../../src/interfaces/libpq -O2 -fno-strict-aliasing -Wa
ll -Wmissing-prototypes -Wmissing-declarations -DFRONTEND -DSYSCONFDIR='"/us
r/local/pgsql/etc"' -DUSE_VERSION=73 -I../../../src/include -D_GNU_SOURCE
-c -o pgsql2shp.o pgsql2shp.c
gcc -g -I.. -I. -I../../../src/interfaces/libpq -O2 -fno-strict-aliasing -Wa
ll -Wmissing-prototypes -Wmissing-declarations -DFRONTEND -DSYSCONFDIR='"/us
r/local/pgsql/etc"' -DUSE_VERSION=73 shpopen.o dbfopen.o getopt.o
pgsql2shp.o -L../../../src/interfaces/libpq -lpq -L../../../src/port -Wl,-r
path,/usr/local/pgsql/lib -o pgsql2shp
gmake[1]: Leaving directory `/root/postgresql/contrib/postgis/loader'
Was mach ich falsch?
Hat jemand Erfahrungen mit meiner Konfiguration gemacht? Welche Pakete
benötige ich für eine reibungslose Installation unter Suse 9.0?
Danke + Gruß
Jochen Wagner
_______________________________________________
Mapserver-DE mailing list
Mapserver-DE at freegis.org
https://freegis.org/mailman/listinfo/mapserver-de
This site is hosted by Intevation GmbH (Datenschutzerklärung und Impressum | Privacy Policy and Imprint)