我尝试了一段时间为我的 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