sudo apt-get install -y g++ cpp \
python-dev libxml2 libxml2-dev \
libfreetype6 libfreetype6-dev \
libjpeg62 libjpeg62-dev \
libltdl7 libltdl-dev \
libpng12-0 libpng12-dev \
libgeotiff-dev libtiff4 libtiff4-dev libtiffxx0c2 \
libcairo2 libcairo2-dev python-cairo python-cairo-dev \
libcairomm-1.0-1 libcairomm-1.0-dev \
ttf-unifont ttf-dejavu ttf-dejavu-core ttf-dejavu-extra \
subversion build-essential python-nose libpq-dev
libgdal1-dev python-gdal \
libsqlite3-dev
http://trac.mapnik.org/wiki/Mapnik2
wget http://download.icu-project.org/files/icu4c/4.6/icu4c-4_6-src.tgz
tar xzvf icu4c-4_6-src.tgz
cd icu/source
./runConfigureICU Linux
make
sudo make install
sudo ldconfig
wget http://voxel.dl.sourceforge.net/project/boost/boost/1.46.1/boost_1_46_1.tar.bz2
tar xjvf boost_1_46_1.tar.bz2
cd boost_1_46_1
./bootstrap.sh
./bjam \
--with-thread \
--with-filesystem \
--with-python \
--with-regex -sHAVE_ICU=1 -sICU_PATH=/usr/local \
--with-program_options \
--with-system \
link=shared \
toolset=gcc \
stage
sudo ./bjam \
--with-thread \
--with-filesystem \
--with-python \
--with-regex -sHAVE_ICU=1 -sICU_PATH=/usr/local \
--with-program_options \
--with-system \
toolset=gcc \
link=shared \
install
sudo ldconfig
https://github.com/mapnik/mapnik/blob/master/INSTALL.md
wget https://github.com/downloads/mapnik/mapnik/mapnik-2.0.0.tar.bz2
tar xjvf mapnik-2.0.0.tar.bz2
cd mapnik-2.0.0
python scons/scons.py configure
sudo python scons/scons.py install