- OS : Ubuntu 14.04.1 LTS Desktop 64-bit (http://www.ubuntu.com/download/alternative-downloads#external)
- Python Distribution : Anaconda Python (https://store.continuum.io/cshop/anaconda/)
- Hardware : Lenovo Thinkpad L440
Requirements as given under - http://graph-tool.skewed.de/download
- GCC, version 4.8 or above (version 4.9 is recommended). For MacOS X, the clang compiler is required.
sudo apt-get install gcc-4.8
- The Boost libraries, version 1.54 or above.
sudo apt-get install libboost-all-dev
(http://packages.ubuntu.com/trusty/libboost-all-dev)
- Python version 2.7 or 3 and above.
bash Anaconda-2.1.0-Linux-x86_64.sh
- The expat library.
sudo apt-get install expat
(http://packages.ubuntu.com/trusty/expat)
- The SciPy python module.
- Included in Anaconda's Python distribution (
conda list | grep numpy
)
- Included in Anaconda's Python distribution (
- The Numpy python module.
- Included in Anaconda's Python distribution (
conda list | grep scipy
)
- Included in Anaconda's Python distribution (
- The CGAL C++ geometry library, version 3.5 or above.
sudo apt-get install libcgal*
(http://packages.ubuntu.com/search?keywords=cgal&searchon=names&suite=trusty§ion=all)
- The sparsehash template library (optional, but recommended).
- https://git.skewed.de/count0/graph-tool/issues/105
wget https://sparsehash.googlecode.com/files/sparsehash_2.0.2-1_amd64.deb
(https://code.google.com/p/sparsehash/)sudo dpkg -i ./sparsehash_2.0.2-1_amd64.deb
- The cairomm, pycairo and matplotlib libraries, used for graph drawing (optional).
sudo apt-get install libcairomm-*
(http://packages.ubuntu.com/search?keywords=cairomm&searchon=names&suite=trusty§ion=all)conda install py2cairo
(http://repo.continuum.io/pkgs/free/linux-64/index.html)- Matplotlib - Included in Anaconda's Python distribution (
conda list | grep matplotlib
)
- The Graphviz packaged for graph drawing, with the python bindings enabled (optional, deprecated).
- I am not installing this as it is optional.
wget http://downloads.skewed.de/graph-tool/graph-tool-2.2.35.tar.bz2
cd ./graph-tool-2.2.35.tar.bz2
./configure CPPFLAGS=-I/home/<user>/anaconda/pkgs/py2cairo-1.10.0-py27_2/include/
(http://lists.skewed.de/pipermail/graph-tool/2014-January/001145.html)make
make install
DONE
hy - thank you for this valuable gist. I extended it in my fork and further compiled an update-to-date Anaconda package (python 2.7 with openmp and boost 1.60) which "should work" if you have gcc >= 5.0 on your machine. I tested the package on two machines running Ubuntu 14.04.04LTS and gcc 5.3.0. Would be nice if someone could try to install the package and see if it works.
conda install graph-tool -c floriangeigl -c msarahan -c conda-forge -c bioconda -c ostrokach -c vgauthier -c salford_systems
should do the trick. Usingpython -c"import graph_tool.all as gt; gt.show_config()"
one should see openmp enabled and the warning that GTK+ will not work.