[OSM-dev] Need help with Mapnik error message: UserWarning: Could not create datasource. No plugin found for type 'postgis' in layer 'leisure'

Ralf Zimmermann osm_list at ralfzimmermann.de
Sat Nov 22 13:49:31 GMT 2008


Ralf Zimmermann wrote:
> This looks like my problem. I ran scons/scons.py again and below is the output 
> where there actually are a few "no" listed. However, I don't really know what to 
> do from here.

Wow - a bit more thinking did the job. I found the postgres headers in the 
folder /usr/include/postgresql/. I added this as proposed by Jon and ran:
	python scons/scons.py PGSQL_INCLUDES=/usr/include/postgresql/
	python scons/scons.py PGSQL_INCLUDES=/usr/include/postgresql/ install

In the first step it said "Checking for C library pq... (cached) yes" finally.

When I then ran the generate_tiles.py again (as user mapnik), it was actually 
processing tiles. WOW! But I got a lot of errors "convert: command not found".
A quick "apt-get install imagemagick" fixed this too.

Now I have a working Mapnik installation again! Finally...!

Jon - thanks a lot for pushing my thoughts into the right direction!


RalfZ
Munich, Germany




More information about the dev mailing list