- Xcode (Not necessary)
- Command Line Tools for Xcode
- ruby -e "$(curl -fsSL https://raw.github.com/Homebrew/homebrew/go/install)"
- brew doctor
- brew update
- brew install python
- vim ~/.bash_profile
- and insert this code:
export ARCHFLAGS="-arch x86_64"
export PATH=/usr/local/bin:$PATH
test -f ~/.bashrc && source ~/.bashrc
- . ~/.bash_profile
- easy_install pip # If you don't have already pip installed
- brew install gcc
- pip install numpy
- pip install scipy
- brew install freetype
- pip install matplotlib
- brew tap homebrew/science
- brew install graph-tool
I was able to configure after brew installing / rebuilding boost from scratch, as described here (mentioned by others above): http://stackoverflow.com/questions/26189058/ld-library-not-found-for-lboost-python.
When I tried to make, I found the following error:
./../numpy_bind_old.hh:58:65: error: 'value' is not a member of 'boost::mpl::aux::wrapped_typeboost::mpl::aux::type_wrapper<mpl_::void_ >::type {aka mpl_::void_}'
int val_type = boost::mpl::at<numpy_types,ValueType>::type::value;
As also described here: http://main-discussion-list-for-the-graph-tool-project.982480.n3.nabble.com/Graph-Tool-Mac-OS-Build-Errors-td4025790.html
I switched my python binary to point to "/usr/bin/pythonw2.7" based on the link, which took me a couple hours to find (note: that is version Python 2.7.5 (default, Mar 9 2014, 22:15:05)), as described in the link. Previously, I was using Python 3.4.1 (default, May 19 2014, 13:10:29). Using the pythonw2.7 binary still didn't seem to help. It looks to me like there is some boost compatibility issue. Anybody else seeing this?