- 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"
test -f ~/.bashrc && source ~/.bashrc
- . ~/.bash_profile
- easy_install pip # If you don't have already pip installed
Install libraries and prerequisites
- brew install gcc
- pip install numpy
- pip install scipy
- brew install freetype
- pip install matplotlib
Install graph-tool with brew
- brew tap homebrew/science
- brew install graph-tool
Note: google-sparsehash is not required, and a couple people are having trouble compiling google-sparsehash on OSX 10.9
You can skip installing google-sparsehash. Just make sure you run
./configure PYTHON_EXTRA_LDFLAGS="-L/usr/local/bin" --disable-sparsehashand the configure script won't look for the sparsehash headers.