acugis / nominatim-server Goto Github PK
View Code? Open in Web Editor NEWScript for Building a Basic Nominatim Server
Home Page: https://www.acugis.com/opennamesearch/
Script for Building a Basic Nominatim Server
Home Page: https://www.acugis.com/opennamesearch/
Hi I was/am excitied to use your Tomcat plugin as it will hopefully enable me to restart tomcat from my phone if things go wrong while prototyping.
The setup is incomplete stating that:
Warning: Java is not found. Install it manually or from the Java tab
When I follow the link to the "java tab" I have:
HTTP/1.0 500 Perl execution failed Server: MiniServ/1.941 Date: Mon, 17 Feb 2020 15:53:50 GMT Content-type: text/html; Charset=iso-8859-1 Connection: close
Error - Perl execution failed
open:No such file or directory at ./java-lib.pl line 118.
I can take a shot at installing Java manually but pushbutton maintenance is nice for somebody as time constrained as myself.
This is a really great idea thanks for making it :)
Hi first of all thanks for this setup and great work, I am trying to figure out how to call the APIs without using the html page when I tried I am getting a 404 can you assist please
Scanning dependencies of target osm2pgsql_lib
[ 2%] Building CXX object osm2pgsql/CMakeFiles/osm2pgsql_lib.dir/expire-tiles.cpp.o
[ 4%] Building CXX object osm2pgsql/CMakeFiles/osm2pgsql_lib.dir/geometry-processor.cpp.o
[ 7%] Building CXX object osm2pgsql/CMakeFiles/osm2pgsql_lib.dir/id-tracker.cpp.o
[ 9%] Building CXX object osm2pgsql/CMakeFiles/osm2pgsql_lib.dir/middle-pgsql.cpp.o
[ 11%] Building CXX object osm2pgsql/CMakeFiles/osm2pgsql_lib.dir/middle-ram.cpp.o
[ 14%] Building CXX object osm2pgsql/CMakeFiles/osm2pgsql_lib.dir/middle.cpp.o
[ 16%] Building CXX object osm2pgsql/CMakeFiles/osm2pgsql_lib.dir/node-persistent-cache.cpp.o
[ 19%] Building CXX object osm2pgsql/CMakeFiles/osm2pgsql_lib.dir/node-ram-cache.cpp.o
[ 21%] Building CXX object osm2pgsql/CMakeFiles/osm2pgsql_lib.dir/options.cpp.o
[ 23%] Building CXX object osm2pgsql/CMakeFiles/osm2pgsql_lib.dir/osmdata.cpp.o
[ 26%] Building CXX object osm2pgsql/CMakeFiles/osm2pgsql_lib.dir/osmium-builder.cpp.o
[ 28%] Building CXX object osm2pgsql/CMakeFiles/osm2pgsql_lib.dir/output-gazetteer.cpp.o
[ 30%] Building CXX object osm2pgsql/CMakeFiles/osm2pgsql_lib.dir/output-multi.cpp.o
[ 33%] Building CXX object osm2pgsql/CMakeFiles/osm2pgsql_lib.dir/output-null.cpp.o
[ 35%] Building CXX object osm2pgsql/CMakeFiles/osm2pgsql_lib.dir/output-pgsql.cpp.o
[ 38%] Building CXX object osm2pgsql/CMakeFiles/osm2pgsql_lib.dir/output.cpp.o
[ 40%] Building CXX object osm2pgsql/CMakeFiles/osm2pgsql_lib.dir/parse-osmium.cpp.o
[ 42%] Building CXX object osm2pgsql/CMakeFiles/osm2pgsql_lib.dir/pgsql.cpp.o
[ 45%] Building CXX object osm2pgsql/CMakeFiles/osm2pgsql_lib.dir/processor-line.cpp.o
[ 47%] Building CXX object osm2pgsql/CMakeFiles/osm2pgsql_lib.dir/processor-point.cpp.o
[ 50%] Building CXX object osm2pgsql/CMakeFiles/osm2pgsql_lib.dir/processor-polygon.cpp.o
[ 52%] Building CXX object osm2pgsql/CMakeFiles/osm2pgsql_lib.dir/reprojection.cpp.o
[ 54%] Building CXX object osm2pgsql/CMakeFiles/osm2pgsql_lib.dir/sprompt.cpp.o
[ 57%] Building CXX object osm2pgsql/CMakeFiles/osm2pgsql_lib.dir/table.cpp.o
[ 59%] Building CXX object osm2pgsql/CMakeFiles/osm2pgsql_lib.dir/taginfo.cpp.o
[ 61%] Building CXX object osm2pgsql/CMakeFiles/osm2pgsql_lib.dir/tagtransform.cpp.o
[ 64%] Building CXX object osm2pgsql/CMakeFiles/osm2pgsql_lib.dir/tagtransform-c.cpp.o
[ 66%] Building CXX object osm2pgsql/CMakeFiles/osm2pgsql_lib.dir/util.cpp.o
[ 69%] Building CXX object osm2pgsql/CMakeFiles/osm2pgsql_lib.dir/wildcmp.cpp.o
[ 71%] Linking CXX static library libosm2pgsql.a
[ 71%] Built target osm2pgsql_lib
Scanning dependencies of target osm2pgsql
[ 73%] Building CXX object osm2pgsql/CMakeFiles/osm2pgsql.dir/osm2pgsql.cpp.o
[ 76%] Linking CXX executable osm2pgsql
[ 76%] Built target osm2pgsql
Scanning dependencies of target nominatim_lib
[ 78%] Running external makefile /usr/lib/postgresql/9.5/lib/pgxs/src/makefiles/pgxs.mk
/home/ntim/Nominatim/module/Makefile:11: warning: overriding recipe for target 'install'
/usr/lib/postgresql/9.5/lib/pgxs/src/makefiles/pgxs.mk:123: warning: ignoring old recipe for target 'install'
[ 78%] Built target nominatim_lib
Scanning dependencies of target nominatim
[ 80%] Building C object nominatim/CMakeFiles/nominatim.dir/export.c.o
[ 83%] Building CXX object nominatim/CMakeFiles/nominatim.dir/geometry.cpp.o
[ 85%] Building C object nominatim/CMakeFiles/nominatim.dir/import.c.o
[ 88%] Building C object nominatim/CMakeFiles/nominatim.dir/index.c.o
[ 90%] Building C object nominatim/CMakeFiles/nominatim.dir/input.c.o
[ 92%] Building C object nominatim/CMakeFiles/nominatim.dir/nominatim.c.o
[ 95%] Building C object nominatim/CMakeFiles/nominatim.dir/postgresql.c.o
[ 97%] Building C object nominatim/CMakeFiles/nominatim.dir/sprompt.c.o
[100%] Linking CXX executable nominatim
[100%] Built target nominatim
ALTER ROLE
--2018-05-25 02:48:47-- http://download.geofabrik.de/europe/switzerland-latest.osm.pbf
Resolving download.geofabrik.de (download.geofabrik.de)... 88.99.24.113
Connecting to download.geofabrik.de (download.geofabrik.de)|88.99.24.113|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 293473161 (280M) [application/octet-stream]
Saving to: ‘switzerland-latest.osm.pbf’
switzerland-latest.osm.pbf 100%[===========================================================>] 279.88M 72.8MB/s in 4.0s
2018-05-25 02:48:51 (70.8 MB/s) - ‘switzerland-latest.osm.pbf’ saved [293473161/293473161]
--2018-05-25 02:48:51-- http://www.nominatim.org/data/country_grid.sql.gz
Resolving www.nominatim.org (www.nominatim.org)... 81.169.170.39
Connecting to www.nominatim.org (www.nominatim.org)|81.169.170.39|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 42146983 (40M) [application/x-gzip]
Saving to: ‘/home/ntim/Nominatim/data/country_osm_grid.sql.gz’
/home/ntim/Nominatim/data/country 100%[===========================================================>] 40.19M 11.2MB/s in 3.7s
2018-05-25 02:48:55 (11.0 MB/s) - ‘/home/ntim/Nominatim/data/country_osm_grid.sql.gz’ saved [42146983/42146983]
2018-05-25 02:48:55 == Create DB
2018-05-25 02:48:56 == Setup DB
Postgres version found: 9.5
Postgis version found: 2.2
2018-05-25 02:49:00 == WARNING: external UK postcode table not found.
2018-05-25 02:49:00 == Import data
osm2pgsql version 0.95.0-dev (64 bit id space)
Using projection SRS 4326 (Latlong)
NOTICE: table "place" does not exist, skipping
Allocating memory for dense node cache
Allocating dense node cache in one big chunk
Out of memory for dense node cache, reduce --cache size
Error occurred, cleaning up
ERROR: Error executing external command: /home/ntim/Nominatim/build/osm2pgsql/osm2pgsql -lsc -O gazetteer --hstore --number-processes 1 -C 12106 -P 5432 -d nominatim /home/ntim/switzerland-latest.osm.pbf
Error executing external command: /home/ntim/Nominatim/build/osm2pgsql/osm2pgsql -lsc -O gazetteer --hstore --number-processes 1 -C 12 106 -P 5432 -d nominatim /home/ntim/switzerland-latest.osm.pbf
Enabling conf nominatim_dir.
To activate the new configuration, you need to run:
service apache2 reload
GRANT
GRANT
Collecting osmium
Downloading https://files.pythonhosted.org/packages/7a/eb/63d7af416ee6126c96a3e5c057750e266da5d1eecc108a6fe87cad9e98c9/osmium-2.14.1 .tar.gz (1.6MB)
100% |¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦| 1.6MB 665kB/s
Complete output from command python setup.py egg_info:
Traceback (most recent call last):
File "", line 1, in
ImportError: No module named setuptools
----------------------------------------
Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-build-W9iVlY/osmium/
You are using pip version 8.1.1, however version 10.0.1 is available.
You should consider upgrading via the 'pip install --upgrade pip' command.
2018-05-25 02:49:08 == Index ranks 0 - 4
nominatim version 3.1.0
Failed preparing index_sectors: ERROR: relation "placex" does not exist
LINE 1: select geometry_sector,count(*) from placex where rank_searc...
^
ERROR: Error executing external command: /home/ntim/Nominatim/build/nominatim/nominatim -i -d nominatim -P 5432 -t 1 -R 4
Error executing external command: /home/ntim/Nominatim/build/nominatim/nominatim -i -d nominatim -P 5432 -t 1 -R 4
2018-05-25 02:49:08 == Create Functions
NOTICE: type "addressline" does not exist, skipping
Summary of warnings:
2018-05-25 02:49:08 == Setup finished.
2018-05-25 02:49:08 == Create Functions
NOTICE: drop cascades to function get_addressdata(bigint,integer)
NOTICE: drop cascades to function get_wikipedia_match(hstore,character varying)
Summary of warnings:
2018-05-25 02:49:08 == Setup finished.
PHP Warning: file_get_contents(https://www.openstreetmap.org/api/0.6/node/DB Error: no such table/1): failed to open stream: HTTP req uest failed! HTTP/1.1 400 Bad Request
in /home/ntim/Nominatim/lib/lib.php on line 42
ERROR: Cannot determine date of database.
Cannot determine date of database.
Created symlink from /etc/systemd/system/multi-user.target.wants/nominatum-updates.service to /etc/systemd/system/nominatum-updates.se rvice.
I think there is a typo on line 219 of Nominatim-Server.sh
It says:
rm -f ${PDB_FILE}
I think it should say
rm -f ${PBF_FILE}
Hi David
You need to sudo ./OpenNameSearch.sh pbf_url as otherwise you get
touch: cannot touch ‘/root/auth.txt’: Permission denied
Up to Rank 26...
Thanks
Andy.
Hi friend, thanks for the great work. But I am having error while executing the file, basically at the end of the installation, I get the error and the nominatim server is not installed correctly. If you can help me, I will be forever grateful.
...
[ 93%] Building C object nominatim/CMakeFiles/nominatim.dir/nominatim.c.o
[ 95%] Building C object nominatim/CMakeFiles/nominatim.dir/postgresql.c.o
[ 97%] Building C object nominatim/CMakeFiles/nominatim.dir/sprompt.c.o
[100%] Linking CXX executable nominatim
[100%] Built target nominatim
ALTER ROLE
--2019-08-19 17:46:16-- http://download.geofabrik.de/south-america/brazil-latest.osm.pbf
Resolving download.geofabrik.de (download.geofabrik.de)... 88.99.142.44, 88.99.105.98
Connecting to download.geofabrik.de (download.geofabrik.de)|88.99.142.44|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 791622859 (755M) [application/octet-stream]
Saving to: 'brazil-latest.osm.pbf'
brazil-latest.osm.pbf 100%[==========================================>] 754.95M 21.4MB/s in 43s
2019-08-19 17:46:59 (17.4 MB/s) - 'brazil-latest.osm.pbf' saved [791622859/791622859]
--2019-08-19 17:46:59-- http://www.nominatim.org/data/country_grid.sql.gz
Resolving www.nominatim.org (www.nominatim.org)... 138.201.190.130
Connecting to www.nominatim.org (www.nominatim.org)|138.201.190.130|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 42146983 (40M) [application/x-gzip]
Saving to: '/home/ntim/Nominatim/data/country_osm_grid.sql.gz'
/home/ntim/Nominatim/data/c 100%[==========================================>] 40.19M 12.4MB/s in 3.3s
2019-08-19 17:47:04 (12.4 MB/s) - '/home/ntim/Nominatim/data/country_osm_grid.sql.gz' saved [42146983/42146983]
2019-08-19 17:47:04 == module path: /home/ntim/Nominatim/build/module
2019-08-19 17:47:04 == Create DB
2019-08-19 17:47:04 == Setup DB
Postgres version found: 9.05
Postgis version found: 2.2
2019-08-19 17:47:08 == WARNING: optional external GB postcode table file (/home/ntim/Nominatim/data/gb_postcode _data.sql.gz) not found. Skipping.
2019-08-19 17:47:08 == WARNING: optional external US postcode table file (/home/ntim/Nominatim/data/us_postcode _data.sql.gz) not found. Skipping.
2019-08-19 17:47:08 == Import data
osm2pgsql version 0.96.0 (64 bit id space)
Allocating memory for dense node cache
Allocating dense node cache in one big chunk
Out of memory for dense node cache, reduce --cache size
Error occurred, cleaning up
PHP Fatal error: Uncaught Nominatim\DatabaseError: [500]: Database query failed
thrown in /home/ntim/Nominatim/lib/DB.php on line 187
Enabling conf nominatim_dir.
To activate the new configuration, you need to run:
service apache2 reload
GRANT
GRANT
Collecting osmium
Downloading https://files.pythonhosted.org/packages/13/bf/64b82965ecae84d9c6a03599db55515101c6900e5ad89d24d43 3cc7ca957/osmium-2.15.3-cp27-cp27mu-manylinux1_x86_64.whl (1.2MB)
100% |################################| 1.2MB 1.0MB/s
Installing collected packages: osmium
Successfully installed osmium
You are using pip version 8.1.1, however version 19.2.2 is available.
You should consider upgrading via the 'pip install --upgrade pip' command.
2019-08-19 17:47:15 == module path: /home/ntim/Nominatim/build/module
2019-08-19 17:47:15 == Index ranks 0 - 4
nominatim version 3.3.0
Failed preparing index_sectors: ERROR: relation "placex" does not exist
LINE 1: select geometry_sector,count(*) from placex where rank_searc...
^
ERROR: error status 1 running nominatim!
string(33) "error status 1 running nominatim!"
2019-08-19 17:47:15 == module path: /home/ntim/Nominatim/build/module
2019-08-19 17:47:15 == Create Functions
Summary of warnings:
2019-08-19 17:47:15 == Setup finished.
CONST_Pyosmium_Binary not configured.
You need to install pyosmium and set up the path to pyosmium-get-changes
in your local settings file.
ERROR: CONST_Pyosmium_Binary not configured
string(36) "CONST_Pyosmium_Binary not configured"
Created symlink from /etc/systemd/system/multi-user.target.wants/nominatum-updates.service to /etc/systemd/syst em/nominatum-updates.service.
Hello,
I've prepared an OpenNameSearch script that will work for Ubuntu 16.04.
It worked well for me and I'm wondering if it makes sense to merge this up into your project.
Here's the script: https://github.com/f1ana/OpenNameSearch/blob/feature/ubuntu-16/OpenNameSearch-Ubuntu16.sh
-Chris
Could I be really cheeky and ask if you could do a script for a server that will run as both a Tile Server and a Nominatim Server?
Save me from tripping up over too many boxes!
Thanks
Andy.
Hi again, on my first install use this packet http://download.geofabrik.de/south-america/chile-latest.osm.pbf
Now i use this command
./reload-OpenNameSearch.sh http://download.geofabrik.de/south-america/chile-latest.osm.pbf http://download.geofabrik.de/south-america/argentina-latest.osm.pbf http://download.geofabrik.de/south-america/bolivia-latest.osm.pbf http://download.geofabrik.de/south-america/brazil-latest.osm.pbf http://download.geofabrik.de/south-america/colombia-latest.osm.pbf http://download.geofabrik.de/south-america/ecuador-latest.osm.pbf http://download.geofabrik.de/south-america/paraguay-latest.osm.pbf http://download.geofabrik.de/south-america/peru-latest.osm.pbf http://download.geofabrik.de/south-america/suriname-latest.osm.pbf http://download.geofabrik.de/south-america/uruguay-latest.osm.pbf
Ubuntu 14.04.5 x64
RAM 2GB
SSD 40GB
Hi David
I tried to add another pbf but it broke everything - please see attached file.
Thanks
Just tried to install it and I got -
/home/andy
/home/ntim /home/andy
--2023-11-07 10:23:52-- https://download.geofabrik.de/europe/great-britain-latest.osm.pbf
Resolving download.geofabrik.de (download.geofabrik.de)... 65.109.48.72, 65.109.50.43
Connecting to download.geofabrik.de (download.geofabrik.de)|65.109.48.72|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 1682713311 (1,6G) [application/octet-stream]
Saving to: 'great-britain-latest.osm.pbf'
great-britain-lates 100%[===================>] 1,57G 9,96MB/s in 2m 46s
2023-11-07 10:26:38 (9,65 MB/s) - 'great-britain-latest.osm.pbf' saved [1682713311/1682713311]
--2023-11-07 10:26:39-- http://www.nominatim.org/data/country_grid.sql.gz
Resolving www.nominatim.org (www.nominatim.org)... 138.201.190.130
Connecting to www.nominatim.org (www.nominatim.org)|138.201.190.130|:80... connected.
HTTP request sent, awaiting response... 301 Moved Permanently
Location: https://www.nominatim.org/data/country_grid.sql.gz [following]
--2023-11-07 10:26:39-- https://www.nominatim.org/data/country_grid.sql.gz
Connecting to www.nominatim.org (www.nominatim.org)|138.201.190.130|:443... connected.
HTTP request sent, awaiting response... 301 Moved Permanently
Location: https://nominatim.org/data/country_grid.sql.gz [following]
--2023-11-07 10:26:39-- https://nominatim.org/data/country_grid.sql.gz
Resolving nominatim.org (nominatim.org)... 138.201.190.130
Connecting to nominatim.org (nominatim.org)|138.201.190.130|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 42146983 (40M) [application/octet-stream]
Saving to: '/home/ntim/Nominatim/data/country_osm_grid.sql.gz'
/home/ntim/Nominati 100%[===================>] 40,19M 7,40MB/s in 5,5s
2023-11-07 10:26:45 (7,31 MB/s) - '/home/ntim/Nominatim/data/country_osm_grid.sql.gz' saved [42146983/42146983]
2023-11-07 10:26:48: Using project directory: /var/www/nominatim
2023-11-07 10:26:50: Creating database
2023-11-07 10:26:55: Setting up country tables
Traceback (most recent call last):
File "/usr/bin/nominatim", line 14, in
exit(cli.nominatim(module_dir='/usr/lib/x86_64-linux-gnu/nominatim/module',
File "/usr/lib/x86_64-linux-gnu/nominatim/lib-python/nominatim/cli.py", line 264, in nominatim
return parser.run(**kwargs)
File "/usr/lib/x86_64-linux-gnu/nominatim/lib-python/nominatim/cli.py", line 126, in run
return args.command.run(args)
File "/usr/lib/x86_64-linux-gnu/nominatim/lib-python/nominatim/clicmd/setup.py", line 89, in run
country_info.setup_country_tables(args.config.get_libpq_dsn(),
File "/usr/lib/x86_64-linux-gnu/nominatim/lib-python/nominatim/data/country_info.py", line 142, in setup_country_tables
cur.execute_values(
File "/usr/lib/x86_64-linux-gnu/nominatim/lib-python/nominatim/db/connection.py", line 46, in execute_values
psycopg2.extras.execute_values(self, sql, argslist, template=template)
File "/usr/lib/python3/dist-packages/psycopg2/extras.py", line 1267, in execute_values
parts.append(cur.mogrify(template, args))
File "/usr/lib/python3/dist-packages/psycopg2/extras.py", line 837, in _getquoted_9
return b"hstore(" + k.getquoted() + b", " + v.getquoted() + b")"
UnicodeEncodeError: 'latin-1' codec can't encode characters in position 0-5: ordinal not in range(256)
/home/andy
Enabling conf nominatim_dir.
To activate the new configuration, you need to run:
systemctl reload apache2
could not change directory to "/home/andy": Permission denied
GRANT
could not change directory to "/home/andy": Permission denied
GRANT
/home/ntim /home/andy
2023-11-07 10:27:03: Using project directory: /home/ntim
2023-11-07 10:27:04: Initialising replication updates
Traceback (most recent call last):
File "/usr/bin/nominatim", line 14, in
exit(cli.nominatim(module_dir='/usr/lib/x86_64-linux-gnu/nominatim/module',
File "/usr/lib/x86_64-linux-gnu/nominatim/lib-python/nominatim/cli.py", line 264, in nominatim
return parser.run(**kwargs)
File "/usr/lib/x86_64-linux-gnu/nominatim/lib-python/nominatim/cli.py", line 126, in run
return args.command.run(args)
File "/usr/lib/x86_64-linux-gnu/nominatim/lib-python/nominatim/clicmd/replication.py", line 191, in run
return self._init_replication(args)
File "/usr/lib/x86_64-linux-gnu/nominatim/lib-python/nominatim/clicmd/replication.py", line 79, in _init_replication
replication.init_replication(conn, base_url=args.config.REPLICATION_URL,
File "/usr/lib/x86_64-linux-gnu/nominatim/lib-python/nominatim/tools/replication.py", line 41, in init_replication
date = status.compute_database_date(conn)
File "/usr/lib/x86_64-linux-gnu/nominatim/lib-python/nominatim/db/status.py", line 41, in compute_database_date
osmid = cur.scalar("SELECT max(osm_id) FROM placex WHERE osm_type='N'")
File "/usr/lib/x86_64-linux-gnu/nominatim/lib-python/nominatim/db/connection.py", line 53, in scalar
self.execute(sql, args)
File "/usr/lib/x86_64-linux-gnu/nominatim/lib-python/nominatim/db/connection.py", line 36, in execute
super().execute(query, args)
File "/usr/lib/python3/dist-packages/psycopg2/extras.py", line 146, in execute
return super().execute(query, vars)
psycopg2.errors.UndefinedTable: relation "placex" does not exist
LINE 1: SELECT max(osm_id) FROM placex WHERE osm_type='N'
user@server:/home/ubuntu/nominatim#` ./Nominatim-Server.sh https://download.geofabrik.de/south-america/brazil-latest.osm.pbf
Reading package lists... Done
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Note, selecting 'postgresql-14' instead of 'postgresql-contrib-14'
build-essential is already the newest version (12.9ubuntu3).
g++ is already the newest version (4:11.2.0-1ubuntu1).
libapache2-mod-php is already the newest version (2:8.1+92ubuntu1).
libboost-dev is already the newest version (1.74.0.3ubuntu7).
libboost-filesystem-dev is already the newest version (1.74.0.3ubuntu7).
libboost-system-dev is already the newest version (1.74.0.3ubuntu7).
libbz2-dev is already the newest version (1.0.8-5build1).
libicu-dev is already the newest version (70.1-2).
liblua5.3-dev is already the newest version (5.3.6-1build1).
php is already the newest version (2:8.1+92ubuntu1).
php-cgi is already the newest version (2:8.1+92ubuntu1).
php-cli is already the newest version (2:8.1+92ubuntu1).
php-pear is already the newest version (1:1.10.12+submodules+notgz+20210212-1ubuntu3).
php-pgsql is already the newest version (2:8.1+92ubuntu1).
python3-icu is already the newest version (2.8.1-0ubuntu2).
python3-jinja2 is already the newest version (3.0.3-1).
python3-psutil is already the newest version (5.9.0-1build1).
python3-psycopg2 is already the newest version (2.9.2-1build2).
libboost-python-dev is already the newest version (1.74.0.3ubuntu7).
libgeos++-dev is already the newest version (3.10.2-1).
libgeos-dev is already the newest version (3.10.2-1).
libproj-dev is already the newest version (8.2.1-1).
lua5.3 is already the newest version (5.3.6-1build1).
osmosis is already the newest version (0.48.3-1).
php-db is already the newest version (1.10.0-1build4).
php-intl is already the newest version (2:8.1+92ubuntu1).
postgresql-14-postgis-3 is already the newest version (3.2.0+dfsg-1ubuntu1).
python-pip is already the newest version (20.3.4+dfsg-4).
python3-datrie is already the newest version (0.8.2-1build4).
python3-dotenv is already the newest version (0.19.2-1).
python3-pyosmium is already the newest version (3.2.0-1build1).
apache2 is already the newest version (2.4.52-1ubuntu4.6).
cmake is already the newest version (3.22.1-1ubuntu1.22.04.1).
git is already the newest version (1:2.34.1-1ubuntu1.10).
libexpat1-dev is already the newest version (2.4.7-1ubuntu0.2).
libpq-dev is already the newest version (14.9-0ubuntu0.22.04.1).
libxml2-dev is already the newest version (2.9.13+dfsg-1ubuntu0.3).
postgresql-14 is already the newest version (14.9-0ubuntu0.22.04.1).
zlib1g-dev is already the newest version (1:1.2.11.dfsg-2ubuntu9.2).
postgresql-server-dev-14 is already the newest version (14.9-0ubuntu0.22.04.1).
0 upgraded, 0 newly installed, 0 to remove and 3 not upgraded.
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Note, selecting 'postgresql-14' instead of 'postgresql-contrib-14'
postgis is already the newest version (3.2.0+dfsg-1ubuntu1).
postgresql-14-postgis-3 is already the newest version (3.2.0+dfsg-1ubuntu1).
postgresql-14 is already the newest version (14.9-0ubuntu0.22.04.1).
postgresql-client-14 is already the newest version (14.9-0ubuntu0.22.04.1).
postgresql-server-dev-14 is already the newest version (14.9-0ubuntu0.22.04.1).
0 upgraded, 0 newly installed, 0 to remove and 3 not upgraded.
/home/ntim /home/ubuntu/nominatim
Cloning into 'Nominatim'...
remote: Enumerating objects: 31646, done.
remote: Counting objects: 100% (2020/2020), done.
remote: Compressing objects: 100% (644/644), done.
remote: Total 31646 (delta 1448), reused 1874 (delta 1366), pack-reused 29626
Receiving objects: 100% (31646/31646), 156.67 MiB | 27.12 MiB/s, done.
Resolving deltas: 100% (20108/20108), done.
Submodule 'osm2pgsql' (https://github.com/openstreetmap/osm2pgsql.git) registered for path 'osm2pgsql'
Cloning into '/home/ntim/Nominatim/osm2pgsql'...
remote: Enumerating objects: 24426, done.
remote: Counting objects: 100% (2894/2894), done.
remote: Compressing objects: 100% (905/905), done.
remote: Total 24426 (delta 1954), reused 2796 (delta 1950), pack-reused 21532
Receiving objects: 100% (24426/24426), 50.98 MiB | 22.27 MiB/s, done.
Resolving deltas: 100% (17760/17760), done.
Submodule path 'osm2pgsql': checked out 'ea0178e97d5b69a87a8b9c35210c8be4674e60e6'
/home/ntim/Nominatim /home/ntim /home/ubuntu/nominatim
M osm2pgsql
Note: switching to 'v4.2.3'.
You are in 'detached HEAD' state. You can look around, make experimental
changes and commit them, and you can discard any commits you make in this
state without impacting any branches by switching back to a branch.
If you want to create a new branch to retain commits you create, you may
do so (now or later) by using -c with the switch command. Example:
git switch -c <new-branch-name>
Or undo this operation with:
git switch -
Turn off this advice by setting config variable advice.detachedHead to false
HEAD is now at 1187d0ab prepare 4.2.3 release
--2023-09-04 21:11:44-- https://www.nominatim.org/data/country_grid.sql.gz
Resolving www.nominatim.org (www.nominatim.org)... 138.201.190.130
Connecting to www.nominatim.org (www.nominatim.org)|138.201.190.130|:443... connected.
HTTP request sent, awaiting response... 301 Moved Permanently
Location: https://nominatim.org/data/country_grid.sql.gz [following]
--2023-09-04 21:11:46-- https://nominatim.org/data/country_grid.sql.gz
Resolving nominatim.org (nominatim.org)... 138.201.190.130
Connecting to nominatim.org (nominatim.org)|138.201.190.130|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 42146983 (40M) [application/octet-stream]
Saving to: ‘data/country_osm_grid.sql.gz’
data/country_osm_grid.sql.gz 100%[======================================================================================================================>] 40.19M 4.15MB/s in 14s
2023-09-04 21:12:02 (2.79 MB/s) - ‘data/country_osm_grid.sql.gz’ saved [42146983/42146983]
/home/ntim/Nominatim/build /home/ntim/Nominatim /home/ntim /home/ubuntu/nominatim
-- The C compiler identification is GNU 11.4.0
-- The CXX compiler identification is GNU 11.4.0
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /usr/bin/cc - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/c++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Found Git: /usr/bin/git (found version "2.34.1")
-- Building osm2pgsql 1.9.1
-- Found ZLIB: /usr/lib/x86_64-linux-gnu/libz.so (found version "1.2.11")
-- Looking for pthread.h
-- Looking for pthread.h - found
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD - Success
-- Found Threads: TRUE
-- Found Protozero: /home/ntim/Nominatim/osm2pgsql/contrib/protozero/include (found suitable version "1.7.1", minimum required is "1.6.3")
-- Found EXPAT: /usr/lib/x86_64-linux-gnu/libexpat.so (found version "2.4.7")
-- Found BZip2: /usr/lib/x86_64-linux-gnu/libbz2.so (found version "1.0.8")
-- Looking for BZ2_bzCompressInit
-- Looking for BZ2_bzCompressInit - found
-- Found Osmium: /home/ntim/Nominatim/osm2pgsql/contrib/libosmium/include (found suitable version "2.19.0", minimum required is "2.17.3")
-- Building with Lua support
-- Found Lua: /usr/lib/x86_64-linux-gnu/liblua5.3.so;/usr/lib/x86_64-linux-gnu/libm.so (found version "5.3.6")
-- Found Boost: /usr/lib/x86_64-linux-gnu/cmake/Boost-1.74.0/BoostConfig.cmake (found suitable version "1.74.0", minimum required is "1.50") found components: system filesystem
-- Found PostgreSQL: /usr/lib/x86_64-linux-gnu/libpq.so (found version "14.9")
-- Found Proj [API 6] /usr/lib/x86_64-linux-gnu/libproj.so
-- Libraries used to build: Boost::system;Boost::filesystem;/usr/lib/x86_64-linux-gnu/libpq.so;/usr/lib/x86_64-linux-gnu/libz.so;/usr/lib/x86_64-linux-gnu/libexpat.so;/usr/lib/x86_64-linux-gnu/libbz2.so;/usr/lib/x86_64-linux-gnu/libproj.so;/usr/lib/x86_64-linux-gnu/liblua5.3.so;/usr/lib/x86_64-linux-gnu/libm.so
-- Did not find cimg and/or potrace library. Not building osm2pgsql-gen.
-- Looking for clang-tidy
-- Looking for clang-tidy - found /usr/bin/clang-tidy
-- Tests disabled. Set BUILD_TESTS=ON to enable tests.
-- Looking for pandoc
-- Looking for argparse-manpage
-- Looking for pandoc - found
-- osm2pgsql manual page can be built using 'man' target
-- Looking for argparse-manpage - not found
-- osm2pgsql-replication page can not be built
-- Found PythonInterp: /usr/bin/python3 (found suitable version "3.10.12", minimum required is "3.6")
-- Using PHP binary /usr/bin/php
-- Using php-cgi binary /usr/bin/php-cgi
CMake Warning at CMakeLists.txt:152 (message):
behave not found. BDD tests disabled.
-- Using phpunit binary /usr/bin/phpunit
CMake Warning at CMakeLists.txt:170 (message):
phpcs not found. PHP linting tests disabled.
-- Using pylint binary /usr/bin/pylint
-- Using pytest binary /usr/bin/py.test-3
-- Configuring done
CMake Error: The following variables are used in this project, but they are set to NOTFOUND.
Please set them or make sure they are set and tested correctly in the CMake files:
NLOHMANN_INCLUDE_DIR
used as include directory in directory /home/ntim/Nominatim/osm2pgsql
used as include directory in directory /home/ntim/Nominatim/osm2pgsql
used as include directory in directory /home/ntim/Nominatim/osm2pgsql
used as include directory in directory /home/ntim/Nominatim/osm2pgsql
used as include directory in directory /home/ntim/Nominatim/osm2pgsql
used as include directory in directory /home/ntim/Nominatim/osm2pgsql
used as include directory in directory /home/ntim/Nominatim/osm2pgsql
used as include directory in directory /home/ntim/Nominatim/osm2pgsql
used as include directory in directory /home/ntim/Nominatim/osm2pgsql
used as include directory in directory /home/ntim/Nominatim/osm2pgsql/src
used as include directory in directory /home/ntim/Nominatim/osm2pgsql/src
used as include directory in directory /home/ntim/Nominatim/osm2pgsql/src
used as include directory in directory /home/ntim/Nominatim/osm2pgsql/src
used as include directory in directory /home/ntim/Nominatim/osm2pgsql/src
used as include directory in directory /home/ntim/Nominatim/osm2pgsql/src
used as include directory in directory /home/ntim/Nominatim/osm2pgsql/src
used as include directory in directory /home/ntim/Nominatim/osm2pgsql/src
used as include directory in directory /home/ntim/Nominatim/osm2pgsql/docs
used as include directory in directory /home/ntim/Nominatim/osm2pgsql/docs
used as include directory in directory /home/ntim/Nominatim/osm2pgsql/docs
used as include directory in directory /home/ntim/Nominatim/osm2pgsql/docs
used as include directory in directory /home/ntim/Nominatim/osm2pgsql/docs
used as include directory in directory /home/ntim/Nominatim/osm2pgsql/docs
used as include directory in directory /home/ntim/Nominatim/osm2pgsql/docs
used as include directory in directory /home/ntim/Nominatim/osm2pgsql/docs
CMake Error in osm2pgsql/CMakeLists.txt:
Found relative path while evaluating include directories of "osm2pgsql":
"NLOHMANN_INCLUDE_DIR-NOTFOUND"
CMake Error in osm2pgsql/src/CMakeLists.txt:
Found relative path while evaluating include directories of
"osm2pgsql_lib":
"NLOHMANN_INCLUDE_DIR-NOTFOUND"
-- Generating done
CMake Generate step failed. Build files cannot be regenerated correctly.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.