Locked History Actions

BoostMavericks

How To Install Boost under OS X 10.9 (Mavericks)

For version 1.57 (or later?), just download the tarfile from the boost web site.

Version 1.55 of boost does not build with clang, but there are some patches available via github repos to address this:

git clone --recursive git@github.com:boostorg/boost.git modular-boost >clone.log
cd modular-boost

Build options adapted from here:

./bootstrap.sh
./b2 toolset=clang cxxflags="-stdlib=libc++" linkflags="-stdlib=libc++" link=shared headers
./b2 -a toolset=clang cxxflags="-stdlib=libc++" linkflags="-stdlib=libc++" link=shared

This ends with:

...failed updating 2 targets...
...skipped 1 target...
...updated 419 targets...

Clean up previous install:

cd /usr/local
sudo rm lib/libboost*
sudo rm -r include/boost

Install (not sure how many of these options really need to be repeated):

sudo ./b2 toolset=clang cxxflags="-stdlib=libc++" linkflags="-stdlib=libc++" link=shared --prefix=/usr/local install

This produces the expected libraries...