[OSM-dev] Gazetteer installation problem

David Ssali dssali at tracenology.com
Sat Jun 25 13:56:02 BST 2011


It has been about three weeks of trying to install gazetteer on my
server but i have run into so many problems.
My server has postgresql-8.4 installed and osm2pgsql 0.705.

Am following the instructions directly from
http://wiki.openstreetmap.org/wiki/Nominatim/Installation by replacing
8.3 with 8.4.
I have followed all the steps one by one while ensuring that no errors  occur.

When i reach the step
./osm2pgsql -lsc -O gazetteer -C 2000 -d gazetteer planet.osm.bz2
I replace planet.osm.bz2 with a file for a small city copenhagen so
that it does not take so long.

After completing this step, i get the following results.

Reading in file: /home/dssali/smallcopenhagen.osm
Processing: Node(49k) Way(4k) Relation(143)  parse time: 3s

Node stats: total(49414), max(1299345493)
Way stats: total(4899), max(114788727)
Relation stats: total(143), max(1600367)
node cache: stored: 49414(100.00%), storage efficiency: 1.89%, hit rate: 100.00%
Stopping table: planet_osm_ways
Stopping table: planet_osm_rels
Stopping table: planet_osm_nodes
Building index on table: planet_osm_ways
Building index on table: planet_osm_rels
Stopped table: planet_osm_rels
Stopped table: planet_osm_nodes
Stopped table: planet_osm_ways
Segmentation fault

It ends with a Segmentation fault and the postgresql log file has

2011-06-25 14:42:49 CEST LOG:  unexpected EOF on client connection

When i do this step

cat import_country_name.sql | psql gazetteer

I get an error

ERROR:  type "keyvalue[]" does not exist
ERROR:  relation "country_name" does not exist

I read from a post on this forum that keyvalue[] is created by
osm2pgsql. I have done this about 100 times now but this error still
persists.

When i ignore that error is move on to this step

cat gazetteer-functions.sql | psql gazetteer

I get the following errors
ERROR:  type keyvalue[] does not exist
ERROR:  incompatible library
"/usr/share/osm2pgsql/gazetteer/.libs/gazetteer.so": version mismatch
DETAIL:  Server is version 8.4, library is version 9.0.

If i ignore these errors, the application keeps on complaining about
missing functions.

I have tried to search with google and have got like a thousand
suggestions that have all not solved my problems.
I have come to this forum as a last resort and i hope you guys will be
kind enough to help
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/dev/attachments/20110625/c599b023/attachment.html>


More information about the dev mailing list