This is a static archive of our old OSM Help Site. Please post any new questions and answers at community.openstreetmap.org.

Nominatim Setup.php : ERROR: Scripts must be run from build directory

0

i'm trying to setup my own nominatim server in a CentOS 7 VirtualMachine. I'm using this guide which is followed here for data import.

This line gives me trouble when trying to import data:

./utils/setup.php --osm-file <_data_file_> --all

When executing the above command, the output says "ERROR: Scripts must be run from build directory.".

Which one would be the build directory?

I tried running from nominatim root directory, utils, and data, but no luck.

Best regards, Federico.

asked 21 Feb '18, 13:44

Federico%20Alvarez%20UY's gravatar image

Federico Alv...
16113
accept rate: 0%

edited 21 Feb '18, 14:03


One Answer:

2

The guide has a couple of lines mkdir build; cd build; cmake ..; make. While the build directory could be anywhere in the filesystem, it's usually a subdirectory of the Nominatim directory, so a cd build, then ./utils/setup.php...

answered 21 Feb '18, 14:12

mtmail's gravatar image

mtmail
4.8k1574
accept rate: 27%

1

Thanks a lot mtmail. That was it!

Will continue installation now.

Thanks again.

Best regards, Federico.

(21 Feb '18, 14:18) Federico Alv...