しばらくの間、EPD-python用のpython-igraph-0.6モジュールをインストールしようとしています。私はCコアを構築し、さまざまなサイトの指示に従いました。
/home/joseph/epd/bin/python setup.py build
また
/home/joseph/epd/bin/python setup.py install
そしてそれは常に同じエラーを生成します:
error: command 'gcc' failed with exit status 1
説明が必要になる可能性があります。「gcc」が正しく機能していないか(ただし、すでに./configure、make、make installを使用してCパーツをコンパイルしています)、何かが適切にリンクされていません。私はすでに同様の投稿を見て、python-develパッケージなどをインストールしました...しかし何も変わりませんでした。
完全な出力は次のとおりです。
[root@joseph python-igraph-0.6]# /home/joseph/epd/bin/python setup.py build
Using default include and library paths for compilation
If the compilation fails, please edit the LIBIGRAPH_FALLBACK_*
variables in setup.py or include_dirs and library_dirs in
setup.cfg to point to the correct directories and libraries
where the C core of igraph is installed
()
Include path: /usr/include /usr/local/include
Library path:
running build
running build_py
running build_ext
building 'igraph._igraph' extension
gcc -pthread -fno-strict-aliasing -g -O2 -DNDEBUG -O2 -fPIC -I/usr/include -I/usr /local /include -I../../build/include -I../../include -I/usr/local /include -I/usr/include -I/home/joseph/epd/include/python2.7 -c src/common.c -o build/temp.linux-x86_64-2.7/src/common.o
gcc -pthread -fno-strict-aliasing -g -O2 -DNDEBUG -O2 -fPIC -I/usr/include -I/usr/local/include -I../../build/include -I../../include -I/usr/local/include -I/usr/include -I/home/joseph/epd/include/python2.7 -c src/arpackobject.c -o build/temp.linux-x86_64-2.7/src/arpackobject.o
In file included from src/arpackobject.c:23:0:
src/arpackobject.h:27:27: fatal error: igraph_arpack.h: No such file or directory
compilation terminated.
error: command 'gcc' failed with exit status 1