[GIS] Nominatim Installation Error: Importing and Index OSM data

installationnominatimopenstreetmap

I'm new to GIS and OSM. I've successfully installed OSM locally and now I want to add Nominatim to the mix. I've been following the installation instructions exactly from here: http://wiki.openstreetmap.org/wiki/Nominatim/Installation.

I run into an error when I try to import and index the osm data. The command the guide uses to do this goes as follows:

   sudo ./utils/setup.php --osm-file <your planet file> --all [--osm2pgsql-cache 18000] 2>&1 | tee setup.log

I get a permissions error that I'm not sure how to fix and also it doesn't seem to like the cache specification. This is the error:

    tee: setup.log: Permission Denied
    setup.php: Unknown option '18000]'

Best Answer

Remove the [] around --osm2pgsql-cache 18000

Drop the "| tee setup.log" part. (It just pipes the output to a file. And check your permissions)

Like this:

sudo ./utils/setup.php --osm-file isle-of-man-latest.osm.pbf --all --osm2pgsql-cache 18000

Always a good idea to test with a small file like this one: http://download.geofabrik.de/europe/isle-of-man-latest.osm.pbf

Related Question