I'm trying to follow the tutorial:

And the first part works greatly, but because i'm new at using Linux (Ubuntu 14.04 LTS 64bit) i'm stuck at my first ERROR:

**Installing osm2pgsql**

osm2pgsql is under active development and is best compiled from source.

    mkdir ~/src
    cd ~/src 
    git clone git://github.com/openstreetmap/osm2pgsql.git
    cd osm2pgsql

*bash: ./autogen.sh: No such file or directory*

so the next lines won't work at all:

sudo make install

I also tried the tutorial on github:

I'm a complete novice according to Linux, so if someone can explain me, or if there is someone with a other (working) tutorial, please let me know.

1 Answer 1


Check the readme file of osm2pgsql

first install dependencies as mentioned in readme file, if you follow the switch2osm guide, then you have probably installed them in the beginning

mkdir build && cd build
cmake ..
sudo make install
  • 1
    osm2pgsql recently switched to cmake, i.e. the current documentation on switch2osm.org on how to compile osm2pgsql is a bit outdated...
    – mmd
    Mar 25, 2016 at 9:18
  • The documentation needs update, their advice to apt-get install node-carto was wrong for me because I have newer node.js than the one in repositories. If it bites you, too, just install node-carto using npm instead of apt-get. I also followed instructions from postgresql site to install it along with postgis and creating a tablespace. A new section also about updating the db with diffs should be added. And how about documentation about "Building manual tile server on Centso 7". That's a challenge... Mar 25, 2016 at 10:28

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.