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
Matt Waite Apr 19 2008
11:51 a.m.
#1

Thank you for this. Been thinking about installing Mapnik and this will help a lot.

Kelvin Nicholson Apr 19 2008
6:48 p.m. australia
#2

No problem Matt, I'll possibly post some more details about installing mapnik+postgis+mod_tile on an Ubuntu box, but I'll have to finish dong it first:)

Diarmuid Apr 22 2008
11:40 a.m. ireland
#3

Hi Kev,

I'm the designbuildtestrepeat.wordpress.com guy. I'm glad to see that you are working on Mapnik (and OSM?). I've just committed to giving a talk next month on the use of AWS for map creation so I need to bone up on all that stuff again. It's good to have another resource to refer to

Regards

Diarmuid

Comments are currently closed for this entry.

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. There have been 3 comments so far.

Via Twitter

Just got back from Japan and found a truck hit my car. No note, but my neighbor wrote down their rego. (about 1 week ago)

Currently Reading

Book Book Book Book
View Previous Reads