exit(1);
}
+ // Try accessing the C module, so we know early if something is wrong
+ if (!checkModulePresence()) {
+ fail('error loading nominatim.so module');
+ }
+
if (!file_exists(CONST_ExtraDataPath.'/country_osm_grid.sql.gz')) {
echo 'Error: you need to download the country_osm_grid first:';
echo "\n wget -O ".CONST_ExtraDataPath."/country_osm_grid.sql.gz https://www.nominatim.org/data/country_grid.sql.gz\n";
{
info('Create Functions');
+ // Try accessing the C module, so we know eif something is wrong
+ // update.php calls this function
+ if (!checkModulePresence()) {
+ fail('error loading nominatim.so module');
+ }
$this->createSqlFunctions();
}
} else {
warn('wikipedia redirect dump file not found - some place importance values may be missing');
}
- echo ' finish wikipedia';
}
public function loadData($bDisableTokenPrecalc)