Parveen, Sounds odd - on my Ubuntu 10.10 system the missing file is there (/usr/include/geos/noding/SegmentString.h), but I have another machine that runs Ubuntu 10.04 and sure enough /usr/include/geos does not include a 'noding' directory, so this sounds like it should have the same problem as yours). I assume that this is a difference in the libgeos version (10.10 uses libgeos 3.2.0, but 10.04 has libgeos 3.1.0).
But I have compiled osm2pgsql on it before - in fact I have just re-compiled it now to check. I wonder if it is an issue with the version of osm2pgsql - the one I have just re-compiled successfully is old-ish (svn revision 20565 from March 2010). That version did not have any fancy autotools configuration - just a Makefile - it might be worth trying that unless you need a more recent version. Note that I use osm2pgsql as a 'black box', so someone that knows more about it may be able to shed more light on this! Graham. On 29 January 2011 18:58, Parveen Arora <parveenarora...@gmail.com> wrote: > On Sun, Jan 30, 2011 at 12:16 AM, Graham Jones <grahamjones...@gmail.com> > wrote: > > Parveen, > > It sounds as though you have not compiled osm2pgsql? > > I don't know which operating system you are using, so I would suggest > going > > through the instructions at http://wiki.openstreetmap.org/wiki/Osm2pgsql > . > > It has always compiled easily for me on my Ubuntu based machines. > Yes I am also using Ubuntu10.04 > I had compiled osm2pgsql, and It was also successful > But now I once again tried to compile it, and It is also giving the > same problem as it was previously giving. > Error during compilation is: > > make > make all-recursive > make[1]: Entering directory `/home/parveen/bin/osm2pgsql' > Making all in gazetteer > make[2]: Entering directory `/home/parveen/bin/osm2pgsql/gazetteer' > make[2]: Nothing to be done for `all'. > make[2]: Leaving directory `/home/parveen/bin/osm2pgsql/gazetteer' > make[2]: Entering directory `/home/parveen/bin/osm2pgsql' > g++ -DHAVE_CONFIG_H -I. -pthread -I/usr/include/postgresql > -I/usr/include/libxml2 -I/usr/include -I/usr/include -I/usr/include > -DOSM2PGSQL_DATADIR='"/usr/local/share"' -O2 -march=native > -fomit-frame-pointer -MT build_geometry.o -MD -MP -MF > .deps/build_geometry.Tpo -c -o build_geometry.o build_geometry.cpp > In file included from build_geometry.cpp:37: > /usr/include/geos/geom/prep/PreparedPolygon.h:21:40: error: > geos/noding/SegmentString.h: No such file or directory > In file included from build_geometry.cpp:37: > /usr/include/geos/geom/prep/PreparedPolygon.h:51: error: > ‘geos::noding::SegmentString’ has not been declared > /usr/include/geos/geom/prep/PreparedPolygon.h:51: error: expected ‘;’ > before ‘segStrings’ > make[2]: *** [build_geometry.o] Error 1 > make[2]: Leaving directory `/home/parveen/bin/osm2pgsql' > make[1]: *** [all-recursive] Error 1 > make[1]: Leaving directory `/home/parveen/bin/osm2pgsql' > make: *** [all] Error 2 > > > -- > With Kind Regards > Parveen Arora > www.parveenarora.in > -- Graham Jones Hartlepool, UK.
_______________________________________________ dev mailing list dev@openstreetmap.org http://lists.openstreetmap.org/listinfo/dev