Parveen,<div>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).</div>
<div>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).</div><div><br></div><div>But I have compiled osm2pgsql on it before - in fact I have just re-compiled it now to check.</div>
<div>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).</div><div><br></div><div>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.</div>
<div><br></div><div>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!</div><div><br></div><div>Graham.</div><div><div><br></div><div class="gmail_quote">
On 29 January 2011 18:58, Parveen Arora <span dir="ltr"><<a href="mailto:parveenaroraosm@gmail.com">parveenaroraosm@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<div class="im">On Sun, Jan 30, 2011 at 12:16 AM, Graham Jones <<a href="mailto:grahamjones139@gmail.com">grahamjones139@gmail.com</a>> wrote:<br>
> Parveen,<br>
> It sounds as though you have not compiled osm2pgsql?<br>
> I don't know which operating system you are using, so I would suggest going<br>
> through the instructions at <a href="http://wiki.openstreetmap.org/wiki/Osm2pgsql" target="_blank">http://wiki.openstreetmap.org/wiki/Osm2pgsql</a>.<br>
> It has always compiled easily for me on my Ubuntu based machines.<br>
</div>Yes I am also using Ubuntu10.04<br>
I had compiled osm2pgsql, and It was also successful<br>
But now I once again tried to compile it, and It is also giving the<br>
same problem as it was previously giving.<br>
Error during compilation is:<br>
<br>
make<br>
make  all-recursive<br>
make[1]: Entering directory `/home/parveen/bin/osm2pgsql'<br>
Making all in gazetteer<br>
make[2]: Entering directory `/home/parveen/bin/osm2pgsql/gazetteer'<br>
make[2]: Nothing to be done for `all'.<br>
make[2]: Leaving directory `/home/parveen/bin/osm2pgsql/gazetteer'<br>
make[2]: Entering directory `/home/parveen/bin/osm2pgsql'<br>
g++ -DHAVE_CONFIG_H -I.  -pthread -I/usr/include/postgresql<br>
-I/usr/include/libxml2 -I/usr/include  -I/usr/include -I/usr/include<br>
-DOSM2PGSQL_DATADIR='"/usr/local/share"'   -O2 -march=native<br>
-fomit-frame-pointer -MT build_geometry.o -MD -MP -MF<br>
.deps/build_geometry.Tpo -c -o build_geometry.o build_geometry.cpp<br>
In file included from build_geometry.cpp:37:<br>
/usr/include/geos/geom/prep/PreparedPolygon.h:21:40: error:<br>
geos/noding/SegmentString.h: No such file or directory<br>
In file included from build_geometry.cpp:37:<br>
/usr/include/geos/geom/prep/PreparedPolygon.h:51: error:<br>
‘geos::noding::SegmentString’ has not been declared<br>
/usr/include/geos/geom/prep/PreparedPolygon.h:51: error: expected ‘;’<br>
before ‘segStrings’<br>
make[2]: *** [build_geometry.o] Error 1<br>
make[2]: Leaving directory `/home/parveen/bin/osm2pgsql'<br>
make[1]: *** [all-recursive] Error 1<br>
make[1]: Leaving directory `/home/parveen/bin/osm2pgsql'<br>
make: *** [all] Error 2<br>
<br>
<br>
--<br>
<div class="im">With Kind Regards<br>
Parveen Arora<br>
</div><a href="http://www.parveenarora.in" target="_blank">www.parveenarora.in</a><br>
</blockquote></div><br><br clear="all"><br>-- <br>Graham Jones<div>Hartlepool, UK.</div><br>
</div>