NOTICE: help.openstreetmap.org is no longer in use from 1st March 2024. Please use the OpenStreetMap Community Forum

Due to a large amount of geocoding tasks (around 1,3 million queries only for Germany) I want to install Nominatim on my laptop for which I followed the official manual. I installed the required software without problems, however when installing Nominatim itself as follows

./configure
make

I encounter the following error

middle-pgsql.c:1660:39: error: format specifies type 'long' but the argument has
  type 'unsigned int' [-Werror,-Wformat]
                        size * 8, sizeof(osmid_t) * 8);
                                  ^~~~~~~~~~~~~~~~~~~
1 error generated.
make[2]: *** [middle-pgsql.o] Error 1
make[2]: Leaving directory `/home/jharvard/Nominatim/osm2pgsql'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/home/jharvard/Nominatim/osm2pgsql'
make: *** [all-recursive] Error 1

Though the configuration file runs smoothly, it shows the following warning that I don't know how to deal with. Can anybody help? Is that likely to be the cause?

checking for libxml - version >= 2.0.0... no
*** Could not run libxml test program, checking why...
*** The test program compiled, but did not run. This usually means
*** that the run-time linker is not finding LIBXML or finding the wrong
*** version of LIBXML. If it is not finding LIBXML, you'll need to set your
*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point
*** to the installed location  Also, make sure you have run ldconfig if that
*** is required on your system
***
*** If you have an old version installed, it is best to remove it, although
*** you may also be able to get things to work by modifying LD_LIBRARY_PATH

I am not sure how to deal with the path problem. Because I have properly installed the libxml2-dev package I do not suspect that this is causing the trouble. However, ldconfig seems not to be working. When running it using sudo ldconfig I get the error

/sbin/ldconfig.real: /usr/lib/i386-linux-gnu/libzeitgeist-2.0.so.0 is not an ELF file - it has the wrong mahig bytes
/sbin/ldconfig.real: /usr/lib/i386-linux-gnu/libzeitgeist-2.0.so.0.0.0 is not an ELF file - it has the wrong mahig bytes

I have a Mac (5 GB RAM) with Mac OS 10.10.2 Yosemite on which I am running Ubuntu 14.04.1 LTS (Release 14.04) using Virtual Box 4.3.22 (the Ubuntu distribution I am using is distributed for an edx course).

asked 14 Feb '15, 10:44

scoopert's gravatar image

scoopert
11224
accept rate: 0%

edited 14 Feb '15, 10:49

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Question tags:

×689
×44

question asked: 14 Feb '15, 10:44

question was seen: 2,053 times

last updated: 14 Feb '15, 10:49

NOTICE: help.openstreetmap.org is no longer in use from 1st March 2024. Please use the OpenStreetMap Community Forum