Skip to content

Instantly share code, notes, and snippets.

@sirleech
Forked from cspanring/install-mapnik2.md
Created February 8, 2012 05:04
Show Gist options
  • Save sirleech/1765578 to your computer and use it in GitHub Desktop.
Save sirleech/1765578 to your computer and use it in GitHub Desktop.
Mapnik2 on Ubuntu 11.10 installation

Mapnik2 on Ubuntu 11.10 installation

Dependencies

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

ICU and Boost

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

Install Mapnik2 from source

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

Links

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment