[postgis-users] Re: Postgis 1.1.2 installation problems on Redhat 9
Johan V
jvhoppli at gmail.com
Thu May 18 01:20:04 PDT 2006
OK, i again installed the geos 1.0 rpm package (see previous mail on
geos mailinglist) and did th export LANG=C and i get the following for
the configure output:
[root at 192 postgis]# ./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 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)
-------------------------------------------------------
And as make output i get this:
[root at 192 postgis]# make
make -C lwgeom
make[1]: Entering directory
`/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: error: geos/geom.h: No such file or directory
lwgeom_geos_wrapper.cpp:12:23: error: geos/util.h: No such file or directory
lwgeom_geos_wrapper.cpp:22: error: 'geos' is not a namespace-name
lwgeom_geos_wrapper.cpp:22: error: expected namespace-name before ';' token
lwgeom_geos_wrapper.cpp:98: warning: 'GEOSrelate' initialized and
declared 'extern'
lwgeom_geos_wrapper.cpp:98: error: 'Geometry' was not declared in this scope
lwgeom_geos_wrapper.cpp:98: error: 'g1' was not declared in this scope
lwgeom_geos_wrapper.cpp:98: error: 'Geometry' was not declared in this scope
lwgeom_geos_wrapper.cpp:98: error: 'g2' was not declared in this scope
lwgeom_geos_wrapper.cpp:98: error: initializer expression list treated
as compound expression
lwgeom_geos_wrapper.cpp:102: warning: 'GEOSSetSRID' initialized and
declared 'extern'
lwgeom_geos_wrapper.cpp:102: error: variable or field 'GEOSSetSRID'
declared void
lwgeom_geos_wrapper.cpp:102: error: 'Geometry' was not declared in this scope
lwgeom_geos_wrapper.cpp:102: error: 'g' was not declared in this scope
lwgeom_geos_wrapper.cpp:102: error: expected primary-expression before 'int'
lwgeom_geos_wrapper.cpp:102: error: initializer expression list
treated as compound expression
lwgeom_geos_wrapper.cpp:104: warning: 'GEOSdeleteGeometry' initialized
and declared 'extern'
lwgeom_geos_wrapper.cpp:104: error: variable or field
'GEOSdeleteGeometry' declared void
lwgeom_geos_wrapper.cpp:104: error: 'Geometry' was not declared in this scope
lwgeom_geos_wrapper.cpp:104: error: 'a' was not declared in this scope
lwgeom_geos_wrapper.cpp:105: warning: 'GEOSrelatePattern' initialized
and declared 'extern'
lwgeom_geos_wrapper.cpp:105: error: 'Geometry' was not declared in this scope
lwgeom_geos_wrapper.cpp:105: error: 'g1' was not declared in this scope
lwgeom_geos_wrappelwgeom_geos_wrapper.cpp:151: error: 'int
GEOSGetNumInteriorRings' previously defined here
lwgeom_geos_wrapper.cpp:1500: error: 'Geometry' was not declared in this scope
lwgeom_geos_wrapper.cpp:1500: error: 'g1' was not declared in this scope
lwgeom_geos_wrapper.cpp:1521: error: redefinition of 'int GEOSGetNumGeometries'
lwgeom_geos_wrapper.cpp:153: error: 'int GEOSGetNumGeometries'
previously defined here
lwgeom_geos_wrapper.cpp:1521: error: 'Geometry' was not declared in this scope
lwgeom_geos_wrapper.cpp:1521: error: 'g1' was not declared in this scope
lwgeom_geos_wrapper.cpp:1542: error: expected initializer before '*' token
lwgeom_geos_wrapper.cpp:1563: error: expected initializer before '*' token
lwgeom_geos_wrapper.cpp:1583: error: expected initializer before '*' token
lwgeom_geos_wrapper.cpp:1602: error: expected constructor, destructor,
or type conversion before '*' token
lwgeom_geos_wrapper.cpp:1714: error: expected constructor, destructor,
or type conversion before '*' token
lwgeom_geos_wrapper.cpp:1719: error: expected constructor, destructor,
or type conversion before '*' token
lwgeom_geos_wrapper.cpp:1727: error: redefinition of 'int GEOSGetSRID'
lwgeom_geos_wrapper.cpp:152: error: 'int GEOSGetSRID' previously defined here
lwgeom_geos_wrapper.cpp:1727: error: 'Geometry' was not declared in this scope
lwgeom_geos_wrapper.cpp:1727: error: 'g1' was not declared in this scope
lwgeom_geos_wrapper.cpp:1779: error: redefinition of 'bool GEOSHasZ'
lwgeom_geos_wrapper.cpp:161: error: 'bool GEOSHasZ' previously defined here
lwgeom_geos_wrapper.cpp:1779: error: 'Geometry' was not declared in this scope
lwgeom_geos_wrapper.cpp:1779: error: 'g' was not declared in this scope
lwgeom_geos_wrapper.cpp:1794: error: expected constructor, destructor,
or type conversion before '*' token
lwgeom_geos_wrapper.cpp:1828: error: expected constructor, destructor,
or type conversion before '*' token
make[1]: *** [lwgeom_geos_wrapper.o] Error 1
make[1]: Leaving directory
`/home/postgis/postgresql-8.0.6/contrib/postgis/lwgeom'
make: *** [liblwgeom] Error 2
r.cpp:105: error: 'Geometry' was not declared in this scope
lwgeom_geos_wrapper.cpp:105: error: 'g2' was not declared in this scope
lwgeom_geos_wrapper.cpp:105: error: expected primary-expression before 'char'
lwgeom_geos_wrapper.cpp:105: error: initializer expression list
treated as compound expression
...
lwgeom_geos_wrapper.cpp:151: error: 'int GEOSGetNumInteriorRings'
previously defined here
lwgeom_geos_wrapper.cpp:1500: error: 'Geometry' was not declared in this scope
lwgeom_geos_wrapper.cpp:1500: error: 'g1' was not declared in this scope
lwgeom_geos_wrapper.cpp:1521: error: redefinition of 'int GEOSGetNumGeometries'
lwgeom_geos_wrapper.cpp:153: error: 'int GEOSGetNumGeometries'
previously defined here
lwgeom_geos_wrapper.cpp:1521: error: 'Geometry' was not declared in this scope
lwgeom_geos_wrapper.cpp:1521: error: 'g1' was not declared in this scope
lwgeom_geos_wrapper.cpp:1542: error: expected initializer before '*' token
lwgeom_geos_wrapper.cpp:1563: error: expected initializer before '*' token
lwgeom_geos_wrapper.cpp:1583: error: expected initializer before '*' token
lwgeom_geos_wrapper.cpp:1602: error: expected constructor, destructor,
or type conversion before '*' token
lwgeom_geos_wrapper.cpp:1714: error: expected constructor, destructor,
or type conversion before '*' token
lwgeom_geos_wrapper.cpp:1719: error: expected constructor, destructor,
or type conversion before '*' token
lwgeom_geos_wrapper.cpp:1727: error: redefinition of 'int GEOSGetSRID'
lwgeom_geos_wrapper.cpp:152: error: 'int GEOSGetSRID' previously defined here
lwgeom_geos_wrapper.cpp:1727: error: 'Geometry' was not declared in this scope
lwgeom_geos_wrapper.cpp:1727: error: 'g1' was not declared in this scope
lwgeom_geos_wrapper.cpp:1779: error: redefinition of 'bool GEOSHasZ'
lwgeom_geos_wrapper.cpp:161: error: 'bool GEOSHasZ' previously defined here
lwgeom_geos_wrapper.cpp:1779: error: 'Geometry' was not declared in this scope
lwgeom_geos_wrapper.cpp:1779: error: 'g' was not declared in this scope
lwgeom_geos_wrapper.cpp:1794: error: expected constructor, destructor,
or type conversion before '*' token
lwgeom_geos_wrapper.cpp:1828: error: expected constructor, destructor,
or type conversion before '*' token
make[1]: *** [lwgeom_geos_wrapper.o] Error 1
make[1]: Leaving directory
`/home/postgis/postgresql-8.0.6/contrib/postgis/lwgeom'
make: *** [liblwgeom] Error 2
grz,
Johan.
2006/5/18, strk at refractions.net <strk at refractions.net>:
> It seems we were talking about this on geos-devel.
> Anyway, this is a more appropriate place.
>
>
> On Thu, May 18, 2006 at 09:08:17AM +0200, Johan V wrote:
> > 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/
>
> There's no --with-geos-src switch to postgis configure.
> Please use 'export LANG=C' to use english words.
> Try runnign ./configure w/out arguments and show output.
>
> --strk;
> _______________________________________________
> 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