Updated MacInstallation_Homebrew (markdown)

Dane Springmeyer 2013-06-05 08:48:36 -07:00
parent 6ef6cd757b
commit f8d1714ee3

@ -4,6 +4,12 @@
First, make sure you have homebrew [installed](http://github.com/mxcl/homebrew/wiki/installation)
Then make sure homebrew is updated:
```sh
brew update
```
## Install Options
Now you can either 1) install Mapnik itself with homebrew (which will automatically install all dependencies at the same time) or 2) install all Mapnik dependencies via homebrew and then Mapnik from source.
@ -14,24 +20,6 @@ Now you can either 1) install Mapnik itself with homebrew (which will automatica
brew install mapnik
```
On 10.6.8, you may need to:
```sh
brew link pkg-config
brew install xz libffi
brew link libtiff
brew link jpeg
brew link proj
brew link boost
brew install mapnik
```
On 10.8 you will also need:
```sh
brew install libtool
```
### To install Mapnik from source using homebrew for dependencies do:
```sh
@ -46,15 +34,14 @@ brew install gdal --with-libtiff=/usr/local/lib
brew link ossp-uuid
brew install postgis
brew install cairo --without-x
brew install libtool
git clone https://github.com/mapnik/mapnik.git
cd mapnik
./configure CXX="clang++" JOBS=`sysctl -n hw.ncpu`
./configure
make
make install # sudo make install # Mac OS X Lion. With system default python 2.7
make install
```
Note that on Lion, we need to be more explicit about SQLite. Change version as needed.
Note that on Lion, you need may to be more explicit about SQLite. Change version as needed.
```
./configure CXX="clang++" JOBS=`sysctl -n hw.ncpu` SQLITE_LIBS=/usr/local/Cellar/sqlite/3.7.12/lib/ SQLITE_INCLUDES=/usr/local/Cellar/sqlite/3.7.12/include/
@ -80,5 +67,5 @@ brew install --build-from-source boost
If you need Cairo and its Python bindings, install and link these (cairo and py2cairo) with homebrew as normal. Then, to build Mapnik from source with Cairo:
```
./configure CXX="clang++" JOBS=`sysctl -n hw.ncpu` CAIRO=True CAIRO_INCLUDES=/usr/local CAIRO_LIBS=/usr/local PKG_CONFIG_PATH=/usr/lib/pkgconfig:/usr/local/lib/pkgconfig:/usr/X11/lib/pkgconfig
./configure CXX="clang++" JOBS=`sysctl -n hw.ncpu` CAIRO=True PKG_CONFIG_PATH=/usr/lib/pkgconfig:/usr/local/lib/pkgconfig:/usr/X11/lib/pkgconfig
```