[OSM-dev] Planet file not loading to osm2pgsql
I have osm2pgsql Installed I am trying following to load planet file $cd ~/bin/osm2pgsql $./osm2pgsql -S default.style --slim -d gis -C 2048 ~/planet/planet-100217.osm.bz2 But the Error is: bash: ./osm2pgsql: No such file or directory I really don't have any osm2pgsql file, but there is default.style file in osm2pgsql folder. What should I do to run above command? -- With Kind Regards Parveen Arora ___ dev mailing list dev@openstreetmap.org http://lists.openstreetmap.org/listinfo/dev
Re: [OSM-dev] Planet file not loading to osm2pgsql
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. Regards Graham. On 29 January 2011 18:37, Parveen Arora parveenarora...@gmail.com wrote: I have osm2pgsql Installed I am trying following to load planet file $cd ~/bin/osm2pgsql $./osm2pgsql -S default.style --slim -d gis -C 2048 ~/planet/planet-100217.osm.bz2 But the Error is: bash: ./osm2pgsql: No such file or directory I really don't have any osm2pgsql file, but there is default.style file in osm2pgsql folder. What should I do to run above command? -- With Kind Regards Parveen Arora ___ dev mailing list dev@openstreetmap.org http://lists.openstreetmap.org/listinfo/dev -- Graham Jones Hartlepool, UK. ___ dev mailing list dev@openstreetmap.org http://lists.openstreetmap.org/listinfo/dev
Re: [OSM-dev] Planet file not loading to osm2pgsql
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 ___ dev mailing list dev@openstreetmap.org http://lists.openstreetmap.org/listinfo/dev
Re: [OSM-dev] Planet file not loading to osm2pgsql
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
Re: [OSM-dev] Planet file not loading to osm2pgsql
On Sun, Jan 30, 2011 at 12:49 AM, Graham Jones grahamjones...@gmail.com wrote: Parveen, Sounds odd - on my Ubuntu 10.10 system the missing file is there (/usr/include/geos/noding/SegmentString.h), the same file is also missing here, should I get it from 10.10 now? because I am using 10.04 now 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). Yes here also there is no noding directory in that path 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). Should I also compile older version now? -- With Kind Regards Parveen Arora ___ dev mailing list dev@openstreetmap.org http://lists.openstreetmap.org/listinfo/dev
Re: [OSM-dev] Planet file not loading to osm2pgsql
On Sun, Jan 30, 2011 at 12:07 AM, Parveen Arora parveenarora...@gmail.com wrote: $./osm2pgsql -S default.style --slim -d gis -C 2048 ~/planet/planet-100217.osm.bz2 Try without ./ But the Error is: bash: ./osm2pgsql: No such file or directory I really don't have any osm2pgsql file, but there is default.style file in osm2pgsql folder. It may be at /usr/bin/osm2pgsql -- H.S.Rai ___ dev mailing list dev@openstreetmap.org http://lists.openstreetmap.org/listinfo/dev
Re: [OSM-dev] Planet file not loading to osm2pgsql
On Sun, Jan 30, 2011 at 8:39 AM, H.S.Rai hardeep@gmail.com wrote: On Sun, Jan 30, 2011 at 12:07 AM, Parveen Arora parveenarora...@gmail.com wrote: $./osm2pgsql -S default.style --slim -d gis -C 2048 ~/planet/planet-100217.osm.bz2 Try without ./ It has worked with using ./ I have compiled geos-3.0.0 the older version and copied the necessary files to newer one. It has been start loading -- With Kind Regards Parveen Arora ___ dev mailing list dev@openstreetmap.org http://lists.openstreetmap.org/listinfo/dev