Skip to content

Instantly share code, notes, and snippets.

@v-pravin
Last active April 10, 2020 14:18
Show Gist options
  • Save v-pravin/949fc18d58a560cf85d2 to your computer and use it in GitHub Desktop.
Save v-pravin/949fc18d58a560cf85d2 to your computer and use it in GitHub Desktop.
Installation of graph-tool from source

INSTALLATION OF GRAPH-TOOL FROM SOURCE

System
Requirements as given under - http://graph-tool.skewed.de/download
  1. 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
  2. The Boost libraries, version 1.54 or above.
  3. Python version 2.7 or 3 and above.
    • bash Anaconda-2.1.0-Linux-x86_64.sh
  4. The expat library.
  5. The SciPy python module.
    • Included in Anaconda's Python distribution (conda list | grep numpy)
  6. The Numpy python module.
    • Included in Anaconda's Python distribution (conda list | grep scipy)
  7. The CGAL C++ geometry library, version 3.5 or above.
  8. The sparsehash template library (optional, but recommended).
  9. The cairomm, pycairo and matplotlib libraries, used for graph drawing (optional).
  10. The Graphviz packaged for graph drawing, with the python bindings enabled (optional, deprecated).
    • I am not installing this as it is optional.
Download graph-tool

DONE

@clement-moulin-frier
Copy link

Hi,

I got the same error as @olegsinyavskiy (even when directly installing graph-tool from apt-get).

Thanks,

@floriangeigl
Copy link

Hi guys (@nahuelalmeira, @olegsinyavskiy, @ttfoley) - I'm sorry I didn't notice you're writing me. I just never had a look at my github notifications.... Anyways I spend a lot of time trying to fix the anaconda pkg and some of my attempts seemed to work (at least to some extend - graph-drawing or multiprocessing mostly fucks up). The current available pkg from my anaconda channel seems to work at least for some guys (including multiproc.). However, I just found out that one can link system libs to anaconda lib. Thus, I would highly recommend to just install the graph-tool version available over apt and then link the install pkg via:

ln -s /usr/lib/python2.7/dist-packages/graph_tool /home/USER/anaconda/lib/python2.7/site-packages/graph_tool

Sry again for not responding earlier -

@madhavij
Copy link

@ttfoley : Hi, I am encountering the same error, were you able to resolve yours? If yes, then how?

@madhavij
Copy link

@v-pravin : Is there any significant difference while installing it in Centos 6.5 using the similar steps?

@jbrant
Copy link

jbrant commented Feb 25, 2018

I'm also getting the same error as nahuelalmeira. What is the resolution for Windows users?

@josemarfdc
Copy link

@jbrant according to graph-tool's developer, it doesn't work on windows. The solution this user found was to install Linux http://main-discussion-list-for-the-graph-tool-project.982480.n3.nabble.com/Error-installing-graph-tool-on-windows-td4024889.html

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment