Hi Michal,<br><br><div class="gmail_quote">On Wed, Jan 27, 2010 at 3:30 PM, Michal Palenik <span dir="ltr"><<a href="mailto:michal.palenik@freemap.sk">michal.palenik@freemap.sk</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
hello, i have problems installing/configuring Gazetteer on debian<br>
testing.<br>
<br>
i have osm2pgsql binary from packages, Gazetteer from todays svn<br>
database creation is ok, osm2pgsql is also ok (after correcting<br>
duplicate nodes)<br>
<br>
i have problems with step:<br>
cat gazetteer-functions.sql | psql -q gazetteer<br>
<br>
ERROR: typy keyvalue[] does not exist<br>
<br>
should it be created by ?<br>
<br>
CREATE TYPE keyvalue AS (<br>
key TEXT,<br>
value TEXT<br>
);<br>
<br>
<br>
(i could not find it anywhere, neither in<br>
contrib nor in gazetteer)<br>
<br>
<br>
other missing types are:<br>
wordscore<br>
place_boundingbox<br>
<br>
also in gazetteer-index.sql<br>
place and placex have different structure, which causes<br>
insert into placex select * from place where osm_type = 'N';<br>
to fail<br>
<br>
<br>
michal<br>
<br>
ps:<br>
postgresql-contrib-8.3 needs to be installed<br>
<br>
pg_config is sometimes faulty, so i had to change the makefile to<br>
PGXS := $(shell /usr/lib/postgresql/8.3/bin/pg_config --pgxs)<br>
<br>
notes on role 'twain' are in some sql scripts<br>
<br>
<br>
<br>
--<br>
michal palenik<br>
<a href="http://www.freemap.sk" target="_blank">www.freemap.sk</a><br>
<a href="http://wiki.freemap.sk" target="_blank">http://wiki.freemap.sk</a><br>
<br>
<br></blockquote><div><br>I had the most of these problems when I first tried Nominatim. The
solution(s) is to get the latest osm2pgsql from svn
(<a href="http://svn.openstreetmap.org/applications/utils/export/osm2pgsql/">http://svn.openstreetmap.org/applications/utils/export/osm2pgsql/</a>) and
built it from source. osm2pgsql is the one that creates the keyvalue
type when importing data using gazetteer option.<br><br>The other missing types will be created at the second run of gazetter-functions.sql file.<br><br>--Ciprian<br></div></div><br>