Talk:Mapnik/PostGIS
From OpenStreetMap Wiki
Complete Installation for Ubuntu
Please note that the latest version of osm2pgsql from svn (0.80.0) can not work if you install intarray. So the following rows should be skipped:
# for Ubuntu <=9.10: psql -d gis -f /usr/share/postgresql/8.3/contrib/_int.sql # for Ubuntu >=10.04: psql -d gis -f /usr/share/postgresql/8.4/contrib/_int.sql