Installing Mapnik on Ubuntu 7.10

Published on April 19, 2008

I have managed to install mapnik 0.4, 0.5, 0.5.1 and various SVN releases in-between on Ubuntu. While this isn't in itself exciting, I think I manage to stumble at every installation. I typically forget to add the flags when building, so, to prevent myself from stumbling again, I'm going to write them out here.

Build mapnik
$ python scons/scons.py PYTHON=/usr/bin/python \ 
PGSQL_INCLUDES=/usr/include/postgresql \
PGSQL_LIBS=/usr/lib/postgresql BOOST_INCLUDES=/usr/include/boost BOOST_LIBS=/usr/lib


Then install it
$ sudo python scons/scons.py install PYTHON=/usr/bin/python \ 
PGSQL_INCLUDES=/usr/include/postgresql \
PGSQL_LIBS=/usr/lib/postgresql BOOST_INCLUDES=/usr/include/boost BOOST_LIBS=/usr/lib

Then proceed as normal.



Tagged as: mapnik | postgis | python
blog comments powered by Disqus

About this page

This entry is from my tech blog and was written on April 19, 2008. It's been tagged with mapnik and postgis and python.

Via Twitter

"So far we only got one case." -Yan-Shih bidding on auction wine. (about 1 week, 4 days ago)

Currently Reading

Book Book
View Previous Reads