Hello, I have been trying to install graph-tool 2.27 using python 3.7.3 from source. I obtained the following error in the ./configure phase : checking python module: numpy... yes checking for numpy/arrayobject.h... yes checking for CAIROMM... yes checking python module: cairo... yes checking pycairo/py3cairo.h usability... no checking pycairo/py3cairo.h presence... no checking for pycairo/py3cairo.h... no configure: error: pycairo headers not found These were my settings: GRAPH-TOOL: (python/3.7.3 loads gcc/5.4.0) ========== module purge module load cmake module load python/3.7.3 setenv CGAL_DIR /uufs/chpc.utah.edu/sys/installdir/cgal/4.13.1 setenv BOOST_DIR /uufs/ chpc.utah.edu/sys/installdir/boost/1.68.0-5.4.0g-3.7.3py setenv SPARSE_DIR /uufs/chpc.utah.edu/sys/installdir/sparsehash/2.0.2 setenv PATH $SPARSE_DIR/lib:$PATH setenv CC gcc setenv CFLAGS " -m64 -O2 -fPIC -I$CGAL_DIR/include -I$SPARSE_DIR/include -I$BOOST_DIR/include " setenv CXX g++ setenv CXXFLAGS " $CFLAGS -std=c++14 " setenv LDFLAGS " -Wl,-rpath=$CGAL_DIR/lib64 -L$CGAL_DIR/lib64 -lCGAL -Wl,-rpath=$BOOST_DIR/lib -L$BOOST_DIR/lib -lboost_iostreams -lboost_context-mt -lboost_regex -lboost_graph -lboost_coroutine -lboost_thread-mt " cd /uufs/chpc.utah.edu/sys/srcdir/graph-tool wget https://downloads.skewed.de/graph-tool/graph-tool-2.27.tar.bz2 tar -jxvf graph-tool-2.27.tar.bz2 mv graph-tool-2.27 2.27; cd 2.27 ./configure --prefix=/uufs/chpc.utah.edu/sys/installdir/graph-tool/2.27 \ --with-pic --with-boost=$BOOST_DIR \ --with-boost-python=yes \ --with-cgal=$CGAL_DIR \ --with-sparsehash-prefix=/uufs/ chpc.utah.edu/sys/installdir/sparsehash/2.0.2/include/sparsehash Note: pycairo was properly installed. [hpcapps@centos7 2.27]$ which python3 /uufs/chpc.utah.edu/sys/installdir/python/3.7.3/bin/python3 [hpcapps@centos7 2.27]$ python3 Python 3.7.3 (default, Apr 4 2019, 12:25:30) [GCC 5.4.0] on linux Type "help", "copyright", "credits" or "license" for more information.
import cairo
I also appended the corresponding config.log Any help would be appreciated. Thanks, Wim
There is a patch by Alex Henrie that is ready to be merged that should deal with this problem: https://https://git.skewed.de/count0/graph-tool/merge_requests/16 <https://https://git.skewed.de/count0/graph-tool/merge_requests/16> We are just waiting for someone from graph-tool team to merge it... -- Sent from: http://main-discussion-list-for-the-graph-tool-project.982480.n3.nabble.com/
participants (2)
-
Sergiusz Wesolowski -
Wim R. Cardoen