Skip to content

Instantly share code, notes, and snippets.

@cspanring
Created October 26, 2011 00:20
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 2 You must be signed in to fork a gist
  • Save cspanring/1314907 to your computer and use it in GitHub Desktop.
Save cspanring/1314907 to your computer and use it in GitHub Desktop.
Mapnik2 on Ubuntu 10.04 installation

Mapnik2 on Ubuntu 10.04 installation

http://trac.mapnik.org/wiki/UbuntuInstallation

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

sudo apt-get install 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
./configure
python scons/scons.py install
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment