Well perhaps because I installed different times GEOS on this machine he get this problems. But how can i uninstall them all (or at least so that the ./configure can't find the installed ones). I know that i can remove an rpm package with rpm -e, but all the packages that i maybe installed with configure, make and make install are not removed correctly. If i do sh-x geos_version.sh /usr/ I get the following:
+ '[' -z /usr/ ']' + geos_dir=/usr/ ++ /usr//bin/geos-config --version + [EMAIL PROTECTED]@ + '[' 0 -ne 0 ']' + '[' @GEOS_VERSION@ = @GEOS_VERSION@ ']' + geos_version=100 + version=1.0.0 + jtsport=1.3 + first=1 + last=1 + cat #ifndef GEOS_FIRST_INTERFACE #define GEOS_FIRST_INTERFACE 1 #endif #ifndef GEOS_LAST_INTERFACE #define GEOS_LAST_INTERFACE 1 #endif #ifndef GEOS_VERSION #define GEOS_VERSION "1.0.0" #endif #ifndef GEOS_JTS_PORT #define GEOS_JTS_PORT 1.3 #endif #define POSTGIS_GEOS_VERSION 100 if i removed the just installed rpm package i get of course: + '[' -z /usr/ ']' + geos_dir=/usr/ ++ /usr//bin/geos-config --version geos_version.sh: line 1: /usr//bin/geos-config: Onbekend bestand of map + version= + '[' 127 -ne 0 ']' + exit 1 The only geos-config I have are from the different source directories from geos I have, like .../geos-2.2.1/tools/geos-config .../geos-3.0.0cvs/tools/geos-config .../geos-1.0/tools/geos-config If I install the geos-1.0 version with the configure, make and make install than I get as make output: Making all in source make[1]: Binnengaan van map `/home/postgis/geos-1.0/source' Making all in geom make[2]: Binnengaan van map `/home/postgis/geos-1.0/source/geom' if /bin/sh ../../libtool --mode=compile g++ -DHAVE_CONFIG_H -I. -I. -I../../source/headers -I../../source/headers -I../../source/headers -DGEOS_VERSION=""1.0"" -g -O2 -MT BasicCoordinateList.lo -MD -MP -MF ".deps/BasicCoordinateList.Tpo" \ -c -o BasicCoordinateList.lo `test -f 'BasicCoordinateList.cpp' || echo './'`BasicCoordinateList.cpp; \ then mv ".deps/BasicCoordinateList.Tpo" ".deps/BasicCoordinateList.Plo"; \ else rm -f ".deps/BasicCoordinateList.Tpo"; exit 1; \ fi rm -f .libs/BasicCoordinateList.lo g++ -DHAVE_CONFIG_H -I. -I. -I../../source/headers -I../../source/headers -I../../source/headers -DGEOS_VERSION=1.0 -g -O2 -MT BasicCoordinateList.lo -MD -MP -MF .deps/BasicCoordinateList.Tpo -c BasicCoordinateList.cpp -fPIC -DPIC -o .libs/BasicCoordinateList.lo ../headers/geom.h:186: error: extra qualification 'geos::Coordinate::' on member 'setNull' ../headers/geom.h:192: error: extra qualification 'geos::Coordinate::' on member 'getNull' ../headers/geom.h:196: error: extra qualification 'geos::Coordinate::' on member 'Coordinate' ../headers/geom.h:202: error: extra qualification 'geos::Coordinate::' on member 'Coordinate' ../headers/geom.h:208: error: extra qualification 'geos::Coordinate::' on member 'Coordinate' ../headers/geom.h:214: error: extra qualification 'geos::Coordinate::' on member 'Coordinate' ../headers/geom.h:220: error: extra qualification 'geos::Coordinate::' on member 'setCoordinate' ../headers/geom.h:226: error: extra qualification 'geos::Coordinate::' on member 'equals2D' ../headers/geom.h:236: error: extra qualification 'geos::Coordinate::' on member 'compareTo' ../headers/geom.h:252: error: extra qualification 'geos::Coordinate::' on member 'equals3D' ../headers/geom.h:256: error: extra qualification 'geos::Coordinate::' on member 'makePrecise' ../headers/geom.h:261: error: extra qualification 'geos::Coordinate::' on member 'distance' make[2]: *** [BasicCoordinateList.lo] Fout 1 make[2]: Weggaan uit map `/home/postgis/geos-1.0/source/geom' make[1]: *** [all-recursive] Fout 1 make[1]: Weggaan uit map `/home/postgis/geos-1.0/source' make: *** [all-recursive] Fout 1 geos doesn't depend on postgresql, does it? Grz, Johan 2006/5/18, [EMAIL PROTECTED] <[EMAIL PROTECTED]>:
On Thu, May 18, 2006 at 09:12:30AM +0200, Johan V wrote: > Thx, In postgis_geos_version.h stood that version 1.0 was needed. I > now tried it with a rpm package of the geos 1.0 version, and i didn't > get any error. But now I'll have to post on the postgis mailing list > cause now i get error for their product :-) Don't worry, it's still us :) The postgis_geos_version.h file is automatically generated looking at version of installed geos. In case you have more then one geos installed the ./configure --with-geos flag can be used to specify which one to use. Since the ./configure output you showed contains a GEOS = line, you should check the geos_version.sh script, which seems to be failing. The script goes: version=`${geos_dir}/bin/geos-config --version` if [ "$version" = "@GEOS_VERSION@" ]; then geos_version=100 else ... fi so, in your case it seems that the first line somehow failed. You could inspect what went wrong by running: sh -x geos_version.sh <geosdir> Feel free to send output here. --strk; > > grz > Johan > > 2006/5/17, [EMAIL PROTECTED] <[EMAIL PROTECTED]>: > >Something is wrong with postgis configuration. > >1.1.2 should not try to build lwgeom_geos_wrapper.o > >when building against geos-3.0.0. > >See what's in postgis_geos_version.h > > > >On Wed, May 17, 2006 at 03:21:30PM +0200, Johan V wrote: > >> I'm running a Postgresql "8.0.6-1PGDG" database on Redhat 9 and I'm > >> trying to install geos (from cvs 3.0.0) for use with Postgis & > >> Postgresql. After the configure (see below) I do a make and this is > >> the output (see after the configure part): > > > >... > > > >> lwgeom_geos_wrapper.o lwgeom_geos_wrapper.cpp > >> lwgeom_geos_wrapper.cpp:11:23: fout: geos/geom.h: Onbekend bestand of map > > > >--strk; > >_______________________________________________ > >geos-devel mailing list > >geos-devel@geos.refractions.net > >http://geos.refractions.net/mailman/listinfo/geos-devel > > > _______________________________________________ > geos-devel mailing list > geos-devel@geos.refractions.net > http://geos.refractions.net/mailman/listinfo/geos-devel -- /"\ ASCII Ribbon Campaign \ / Respect for low technology. X Keep e-mail messages readable by any computer system. / \ Keep it ASCII.
_______________________________________________ geos-devel mailing list geos-devel@geos.refractions.net http://geos.refractions.net/mailman/listinfo/geos-devel