[GIS] osm2pgrouting command not found

osm2pgroutingpgrouting

I have installed osm2pgrouting on my Ubuntu 12.04 server with the following code from this tutorial:

sudo add-apt-repository ppa:georepublic/pgrouting-unstable
sudo apt-get update
sudo apt-get install osm2pgrouting

Which ran happily. Unfortunately however, when I go to use osm2pgrouting at the command line, the tool is missing. I realise I could follow the instructions on github but I was hoping to get an easy sudo apt-get install working out of the box.

Thus, how can I get this tool working at the command line? I suspect it is something to do with paths…

Best Answer

Should be here: /usr/share/bin/osm2pgrouting

See also: https://github.com/pgRouting/osm2pgrouting/blob/master/CMakeLists.txt

But particularly if you are dealing with large data (e.g. europe.osm) you might want to try osm2po instead of osm2pgrouting.

Related Question