Hi,
I am having trouble installing pygraphviz on a computer cluster running open suse, bare in mind I have no root privileges at all.
I am trying to use networkx, which gave me some problem with edge attributes not being found, the suggested solution was to install the latest pygraphviz, for which I first needed
to install Graphviz (which was a nightmare, but it seems to be installed now). So the current problem is that gcc is looking for two 'things' when trying to install. I have no idea what they
are, what they do, if I actually have them installed but the code is just not looking in the right place or if I need to install some misc something. Here is the error report:
14657880@head002:~/Transfer/pygraphviz-1.1> python setup.py install
library_path=/export/home/14657880/.local/bin/graphviz/lib/graphviz
include_path=/export/home/14657880/.local/bin/graphviz/include/graphviz
running install
running build
running build_py
running build_ext
building 'pygraphviz._graphviz' extension
gcc -pthread -fno-strict-aliasing -g -O2 -DNDEBUG -fmessage-length=0 -O2 -Wall -D_FORTIFY_SOURCE=2 -fstack-protector -funwind-tables -fasynchronous-unwind-tables -g -fPIC -I/export/home/14657880/.local/bin/graphviz/include/graphviz -I/usr/include/python2.7 -c pygraphviz/graphviz_wrap.c -o build/temp.linux-x86_64-2.7/pygraphviz/graphviz_wrap.o
pygraphviz/graphviz_wrap.c: In function âagattr_labelâ:
pygraphviz/graphviz_wrap.c:2855:5: warning: return makes integer from pointer without a cast
gcc -pthread -shared build/temp.linux-x86_64-2.7/pygraphviz/graphviz_wrap.o -L/export/home/14657880/.local/bin/graphviz/lib/graphviz -L. -Wl,-R/export/home/14657880/.local/bin/graphviz/lib/graphviz -lcgraph -lcdt -lpython2.7 -o build/lib.linux-x86_64-2.7/pygraphviz/_graphviz.so
/usr/lib64/gcc/x86_64-suse-linux/4.5/../../../../x86_64-suse-linux/bin/ld: cannot find -lcgraph
/usr/lib64/gcc/x86_64-suse-linux/4.5/../../../../x86_64-suse-linux/bin/ld: cannot find -lcdt
collect2: ld returned 1 exit status
error: command 'gcc' failed with exit status 1
I altered the setup.py file, by uncommenting the appropriate lines, so that it can find Graphviz. I have googled and googled, but I have not found anything that can remotely help (apart from this discussion board).
Any advice?
Piet