[postgis-users] Postgis 1.1.2 installation problems on Redhat 9

Patricio Cifuentes Ithal pcifuentes at siigsa.cl
Thu May 18 07:42:55 PDT 2006


Hi,
Installing first... geos 2 component, and before postgis
-- 

Patricio Cifuentes Ithal
Ingeniero en Informática

Informática
SIIGSA
(56-2) 204 60 22
----- Original Message ----- 
From: "Johan V" <jvhoppli at gmail.com>
To: <postgis-users at postgis.refractions.net>
Sent: Thursday, May 18, 2006 3:08 AM
Subject: [postgis-users] Postgis 1.1.2 installation problems on Redhat 9


> I installed postgresql 8.0.6-1PGDG (i686), geos-1.0-2 (i386) and proj
> 4.4.7-1 (i386) with rpm packages. Now i want to install postgis 1.1.2
> with the default configure, make and make install instruction put i
> get some errors, this is the output i get (sorry for the dutch words):
>
> [root at 192 postgis]#
> /home/postgis/postgresql-8.0.6/contrib/postgis/configure
> --with-geos-src=/home/postgis/geos-1.0/source/
> 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 ANSI C... 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 iconv_open in -lc... yes
> checking how to run the C preprocessor... gcc -E
> checking for egrep... 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... /usr/bin/pg_config
> checking for geos-config... /usr/bin/geos-config
> checking for proj... /usr/local/bin/proj
> checking for flex... /usr/bin/flex
> checking for dllwrap... no
> checking for dlltool... no
> checking for yacc... /usr/bin/yacc
> checking for perl... /usr/bin/perl
> checking for xsltproc... /usr/bin/xsltproc
> checking for pdfxmltex... /usr/bin/pdfxmltex
> checking for jw... /usr/bin/jw
> checking which template to use... linux
> configure: creating ./config.status
> config.status: creating Makefile.config
> config.status: creating config.h
> config.status: config.h is unchanged
>
>  SUMMARY
>  -------------------------------------------------------
>
>  HOST_OS: linux-gnu
>
>    PGSQL: /usr/bin/pg_config
>     GEOS: /usr/bin/geos-config
>     PROJ: dir=/usr/local
>    ICONV: 1
>
>  PORTNAME: linux
>    PREFIX: /usr
>   EPREFIX: ${prefix}
>       DOC: /usr/share/doc/postgresql/contrib
>      DATA: /usr/share/pgsql/contrib
>       MAN: /usr/share/man
>       BIN: /usr/bin
>       EXT: /usr/lib/pgsql (\$$libdir)
>  -------------------------------------------------------
>
> [root at 192 postgis]# make
> make -C lwgeom
> make[1]: Binnengaan van map
> `/home/postgis/postgresql-8.0.6/contrib/postgis/lwgeom'
> sh ../geos_version.sh /usr > postgis_geos_version.h
> g++ -I/usr/include  -Wall -g -O2 -fPIC -fexceptions -DUSE_GEOS   -c -o
> lwgeom_geos_wrapper.o lwgeom_geos_wrapper.cpp
> lwgeom_geos_wrapper.cpp:11:23: fout: geos/geom.h: Onbekend bestand of map
> lwgeom_geos_wrapper.cpp:12:23: fout: geos/util.h: Onbekend bestand of map
> lwgeom_geos_wrapper.cpp:22: fout: 'geos' is not a namespace-name
> lwgeom_geos_wrapper.cpp:22: fout: expected namespace-name before ';' token
> lwgeom_geos_wrapper.cpp:98: let op: 'GEOSrelate' krijgt beginwaarde en
> is als 'extern' gedeclareerd
> lwgeom_geos_wrapper.cpp:98: fout: 'Geometry' was not declared in this
scope
> lwgeom_geos_wrapper.cpp:98: fout: 'g1' was not declared in this scope
> lwgeom_geos_wrapper.cpp:98: fout: 'Geometry' was not declared in this
scope
> lwgeom_geos_wrapper.cpp:98: fout: 'g2' was not declared in this scope
> lwgeom_geos_wrapper.cpp:98: fout: initializer expression list treated
> as compound expression
> lwgeom_geos_wrapper.cpp:102: let op: 'GEOSSetSRID' krijgt beginwaarde
> en is als 'extern' gedeclareerd
>
> ...
>
> lwgeom_geos_wrapper.cpp:1779: fout: redefinition of 'bool GEOSHasZ'
> lwgeom_geos_wrapper.cpp:161: fout: 'bool GEOSHasZ' previously defined here
> lwgeom_geos_wrapper.cpp:1779: fout: 'Geometry' was not declared in this
scope
> lwgeom_geos_wrapper.cpp:1779: fout: 'g' was not declared in this scope
> lwgeom_geos_wrapper.cpp:1794: fout: expected constructor, destructor,
> or type conversion before '*' token
> lwgeom_geos_wrapper.cpp:1828: fout: expected constructor, destructor,
> or type conversion before '*' token
> make[1]: *** [lwgeom_geos_wrapper.o] Fout 1
> make[1]: Weggaan uit map
`/home/postgis/postgresql-8.0.6/contrib/postgis/lwgeom'
> make: *** [liblwgeom] Fout 2
>
> Like you see, I even put the postgis directory in the contrib
> directory of the postgresql source. As far as I can understand this
> error is that the "make" instruction can't find the .h files of geos,
> but how do i point the make to the correct directory of those header
> files. I tried it with "--with-geos-src" but that wasn't it.
>
> Thx on advance,
> Johan.
> _______________________________________________
> postgis-users mailing list
> postgis-users at postgis.refractions.net
> http://postgis.refractions.net/mailman/listinfo/postgis-users




More information about the postgis-users mailing list