borrowed from : https://gist.github.com/springmeyer/3427021
prior to running thr script you will need to allow epl6 repos with:
# enable EPEL6 by changing enabled=0 -> enabled=1
sudo vim /etc/yum.repos.d/epel.repo
borrowed from : https://gist.github.com/springmeyer/3427021
prior to running thr script you will need to allow epl6 repos with:
# enable EPEL6 by changing enabled=0 -> enabled=1
sudo vim /etc/yum.repos.d/epel.repo
| # update | |
| sudo yum -y update | |
| sudo yum -y upgrade | |
| # install deps | |
| sudo yum -y install make gcc47 gcc-c++ bzip2-devel libpng-devel libtiff-devel zlib-devel libjpeg-devel libxml2-devel python-setuptools git-all python-nose python27-devel python27 proj-devel proj proj-epsg proj-nad freetype-devel freetype libicu-devel libicu | |
| # install optional deps | |
| sudo yum -y install gdal-devel gdal postgresql-devel sqlite-devel sqlite libcurl-devel libcurl cairo-devel cairo pycairo-devel pycairo | |
| JOBS=`grep -c ^processor /proc/cpuinfo` | |
| # build recent boost | |
| export BOOST_VERSION="1_55_0" | |
| export S3_BASE="http://mapnik.s3.amazonaws.com/deps" | |
| curl -O ${S3_BASE}/boost_${BOOST_VERSION}.tar.bz2 | |
| tar xf boost_${BOOST_VERSION}.tar.bz2 | |
| cd boost_${BOOST_VERSION} | |
| ./bootstrap.sh | |
| ./b2 -d1 -j${JOBS} \ | |
| --with-thread \ | |
| --with-filesystem \ | |
| --with-python \ | |
| --with-regex -sHAVE_ICU=1 \ | |
| --with-program_options \ | |
| --with-system \ | |
| link=shared \ | |
| release \ | |
| toolset=gcc \ | |
| stage | |
| sudo ./b2 -j${JOBS} \ | |
| --with-thread \ | |
| --with-filesystem \ | |
| --with-python \ | |
| --with-regex -sHAVE_ICU=1 \ | |
| --with-program_options \ | |
| --with-system \ | |
| toolset=gcc \ | |
| link=shared \ | |
| release \ | |
| install | |
| cd ../ | |
| # set up support for libraries installed in /usr/local/lib | |
| sudo bash -c "echo '/usr/local/lib' > /etc/ld.so.conf.d/boost.conf" | |
| sudo ldconfig | |
| # mapnik | |
| # stable branch: 2.3.x | |
| git clone https://github.com/mapnik/mapnik -b 2.3.x | |
| cd mapnik | |
| ./configure | |
| make | |
| make test-local | |
| sudo make install |