- 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
Hi floriangeigl,
I tried the above, making sure I had the right g++,gcc.
Everything appears to be fine, but I get the following message when I import:
in ()
----> 1 import graph_tool
/home/tommy/anaconda2/lib/python2.7/site-packages/graph_tool/init.py in ()
103
104 from .dl_import import *
--> 105 dl_import("from . import libgraph_tool_core as libcore")
106 version = libcore.mod_info().version
107
/home/tommy/anaconda2/lib/python2.7/site-packages/graph_tool/dl_import.py in dl_import(import_expr)
55
56 try:
---> 57 exec(import_expr, local_dict, global_dict)
58 finally:
59 sys.setdlopenflags(orig_dlopen_flags) # reset it to normal case to
in ()
ImportError: /home/tommy/anaconda2/lib/python2.7/site-packages/graph_tool/../../../libgomp.so.1: version `GOMP_4.0' not found (required by /home/tommy/anaconda2/lib/python2.7/site-packages/graph_tool/libgraph_tool_core.so)
EDIT:
When I run from /usr/bin/python graph_tool works.