- 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
Hello.
Thanks a lot for this detailed instruction. However I have a problem on the last step. Executing configure CPPFLAGS... gives an answer 'failed to find required module numpy. Anaconda is installed. I'll very much appreciate any ideas on what can be wrong here