Skip to content

Instantly share code, notes, and snippets.

@springmeyer
Last active December 21, 2015 13:38
Show Gist options
  • Save springmeyer/6313590 to your computer and use it in GitHub Desktop.
Save springmeyer/6313590 to your computer and use it in GitHub Desktop.
brew install mapnik on vanilla 13 inch macbook
$ uname -a
Darwin danes-MacBook-Pro.local 12.3.0 Darwin Kernel Version 12.3.0: Sun Jan 6 22:37:10 PST 2013; root:xnu-2050.22.13~1/RELEASE_X86_64 x86_64
# source install no gdal
./configure ICU_LIBS=/usr/local/opt/icu4c/lib ICU_INCLUDES=/usr/local/opt/icu4c/include && time make
real 4m46.059s
user 13m52.596s
sys 0m46.456s
danes-MacBook-Pro:projects dane$ time brew install mapnik
==> Installing mapnik dependency: pkg-config
==> Downloading https://downloads.sf.net/project/machomebrew/Bottles/pkg-config-0.28.mountain_lion.bottle.tar.gz
######################################################################## 100.0%
==> Pouring pkg-config-0.28.mountain_lion.bottle.tar.gz
๐Ÿบ /usr/local/Cellar/pkg-config/0.28: 10 files, 636K
==> Installing mapnik dependency: freetype
==> Downloading https://downloads.sf.net/project/machomebrew/Bottles/freetype-2.4.11.mountain_lion.bottle.tar.gz
######################################################################## 100.0%
==> Pouring freetype-2.4.11.mountain_lion.bottle.tar.gz
๐Ÿบ /usr/local/Cellar/freetype/2.4.11: 57 files, 2.5M
==> Installing mapnik dependency: libpng
==> Downloading https://downloads.sf.net/project/machomebrew/Bottles/libpng-1.5.14.mountain_lion.bottle.tar.gz
######################################################################## 100.0%
==> Pouring libpng-1.5.14.mountain_lion.bottle.tar.gz
๐Ÿบ /usr/local/Cellar/libpng/1.5.14: 15 files, 1.0M
==> Installing mapnik dependency: libtiff
==> Downloading http://download.osgeo.org/libtiff/tiff-4.0.3.tar.gz
######################################################################## 100.0%
==> ./configure --prefix=/usr/local/Cellar/libtiff/4.0.3 --without-x --disable-lzma
==> make install
๐Ÿบ /usr/local/Cellar/libtiff/4.0.3: 254 files, 3.6M, built in 23 seconds
==> Installing mapnik dependency: proj
==> Downloading http://download.osgeo.org/proj/proj-4.8.0.tar.gz
######################################################################## 100.0%
==> Downloading http://download.osgeo.org/proj/proj-datumgrid-1.5.zip
######################################################################## 100.0%
==> ./configure --prefix=/usr/local/Cellar/proj/4.8.0
==> make install
๐Ÿบ /usr/local/Cellar/proj/4.8.0: 47 files, 5.7M, built in 20 seconds
==> Installing mapnik dependency: icu4c
==> Downloading https://downloads.sf.net/project/machomebrew/Bottles/icu4c-51.1.mountain_lion.bottle.tar.gz
######################################################################## 100.0%
==> Pouring icu4c-51.1.mountain_lion.bottle.tar.gz
==> Caveats
This formula is keg-only: so it was not symlinked into /usr/local.
Conflicts; see: https://github.com/mxcl/homebrew/issues/issue/167
Generally there are no consequences of this for you. If you build your
own software and it requires this formula, you'll need to add to your
build variables:
LDFLAGS: -L/usr/local/opt/icu4c/lib
CPPFLAGS: -I/usr/local/opt/icu4c/include
==> Summary
๐Ÿบ /usr/local/Cellar/icu4c/51.1: 235 files, 58M
==> Installing mapnik dependency: jpeg
==> Downloading https://downloads.sf.net/project/machomebrew/Bottles/jpeg-8d.mountain_lion.bottle.1.tar.gz
######################################################################## 100.0%
==> Pouring jpeg-8d.mountain_lion.bottle.1.tar.gz
๐Ÿบ /usr/local/Cellar/jpeg/8d: 18 files, 784K
==> Installing mapnik dependency: boost
==> Downloading https://downloads.sf.net/project/machomebrew/Bottles/boost-1.54.0.mountain_lion.bottle.tar.gz
######################################################################## 100.0%
==> Pouring boost-1.54.0.mountain_lion.bottle.tar.gz
๐Ÿบ /usr/local/Cellar/boost/1.54.0: 9811 files, 346M
==> Installing mapnik
==> Downloading http://mapnik.s3.amazonaws.com/dist/v2.2.0/mapnik-v2.2.0.tar.bz2
######################################################################## 100.0%
==> /usr/bin/python scons/scons.py configure CC="cc" CXX="c++" JOBS=2 PREFIX=/usr/local/Cellar/mapnik/2.2.0 ICU_INCLUDES=
==> /usr/bin/python scons/scons.py install
==> Caveats
For non-homebrew python (2.x), you need to amend your PYTHONPATH like so:
export PYTHONPATH=/usr/local/lib/python2.7/site-packages:$PYTHONPATH
==> Summary
๐Ÿบ /usr/local/Cellar/mapnik/2.2.0: 383 files, 52M, built in 6.6 minutes
real 10m10.232s
user 11m56.579s
sys 1m8.194s
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment