Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Quebecisnice/9122158 to your computer and use it in GitHub Desktop.
Save Quebecisnice/9122158 to your computer and use it in GitHub Desktop.

Install prerequisites

Install Homebrew

Install Python

  • brew install python
  • vim ~/.bash_profile
  • and insert this code:

Set architecture flags

export ARCHFLAGS="-arch x86_64"

Ensure user-installed binaries take precedence

export PATH=/usr/local/bin:$PATH

Load .bashrc if it exists

test -f ~/.bashrc && source ~/.bashrc

  • . ~/.bash_profile
  • easy_install pip

Install libraries and prerequisites

  • pip install numpy
  • brew install gfortran
  • pip install scipy
  • brew install freetype
  • brew install libpng
  • brew link freetype
  • pip install git+https://github.com/matplotlib/matplotlib.git#egg=matplotlib-dev
  • brew install --with-c++11 --build-from-source boost
  • brew install cgal
  • brew install graphviz
  • brew install cairo
  • brew install cairomm
  • brew install py2cairo
  • brew install google-sparsehash

Download and compile graph-tool from http://graph-tool.skewed.de/download

  • export PKG_CONFIG_PATH=/opt/X11/lib/pkgconfig
  • ./configure PYTHON_EXTRA_LDFLAGS="-L/usr/local/bin"
  • make
  • make install
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment