Edited by:
Assuming anaconda is installed in
/Users/you/anaconda
the following steps should allow you to compile boost with python using the gcc compiler bindings for anaconda:
fix anaconda lib:
install_name_tool -id /Users/you/anaconda/lib/libpython2.7.dylib /Users/you/anaconda/lib/libpython2.7.dylib
(re) compile boost python
mkdir /Users/you/tmp cd /Users/you/tmp wget http://sourceforge.net/projects/boost/files/boost/1.57.0/boost_1_57_0.tar.bz2/download mv download boost_1_57_0.tar.bz2 tar xvjf boost_1_57_0.tar.bz2 mkdir /Users/you/anaconda_boost_install cd boost_1_57_0
fix libboost-python vs anaconda:
install_name_tool -id /Users/you/anaconda_boost_install/lib/libboost_python.dylib /Users/you/anaconda_boost_install/lib/libboost_python.dylib
Note. The gcc compiler is located in /usr/bin/gcc
. Uncomment below line to use gcc compiler as default compiler:
# export PATH=/usr/bin:/bin:/usr/sbin:/sbin:
You can find the full tutorial here .
source share