[OSM-dev] Need help with Mapnik error message: UserWarning: Could not create datasource. No plugin found for type 'postgis' in layer 'leisure'
Jon Burgess
jburgess777 at googlemail.com
Sat Nov 22 13:51:13 GMT 2008
On Sat, 2008-11-22 at 14:27 +0100, Ralf Zimmermann wrote:
> Jon Burgess wrote:
> > Check for the file: /usr/local/lib/mapnik/input/postgis.input
> > It is probably missing because the Mapnik compilation was unable to find
> > the relevant PostgreSQL libraries and headers files.
> >
> > If you look at the initial scons output when you compiled Mapnik:
> >
> > [jburgess at shark mapnik]$ scons
> > scons: Reading SConscript files ...
> > Building on Linux ...
> > pkg-config --exists cairomm-1.0
> > Checking for C library m... yes
> > Checking for C library ltdl... yes
> > Checking for C library png... yes
> > Checking for C library tiff... yes
> > Checking for C library z... yes
> > Checking for C library jpeg... yes
> > Checking for C library proj... yes
> > Checking for C library pq... yes
> > ...
> >
> > You need the "pq" line above to say 'yes'.
>
>
> 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.
>
> The OS is Debian 4.0r5, with PostgreSQL 8.1 and mapnik-0.5.1.
> RalfZ
>
>
> -------------------------------------
> scons: Reading SConscript files ...
> [94mBuilding on Linux ...[0m
> Checking for C library m... (cached) yes
> Checking for C library ltdl... (cached) yes
> Checking for C library png... (cached) yes
> Checking for C library tiff... (cached) yes
> Checking for C library z... (cached) yes
> Checking for C library jpeg... (cached) yes
> Checking for C library proj... (cached) yes
> Checking for C library iconv... (cached) no
> Checking for C library pq... (cached) no
> Checking for C++ library gdal... (cached) no
> Checking for C++ library boost_filesystem-mt... (cached) yes
> Checking for C++ library boost_regex-mt... (cached) yes
> Checking for C++ library boost_iostreams-mt... (cached) yes
> Checking for C++ library boost_program_options-mt... (cached) yes
> Checking for C++ library boost_thread-mt... (cached) yes
> [94mBindings Python version... 2.4[0m
> [94mPython 2.4 prefix... /usr[0m
> scons: done reading SConscript files.
> scons: Building targets ...
> scons: `.' is up to date.
> scons: done building targets.
You may be able to install it without compiling it yourself:
http://wiki.openstreetmap.org/wiki/Mapnik/Installation
Otherwise you can install the PostgreSQL headers with:
# apt-get install postgresql-dev
Then try scons again.
I don't think either gdal or iconv are essential for rendering OSM
tiles.
Jon
More information about the dev
mailing list