安装python-igraph的编译器错误:警告被视为错误

clstaudt

尝试python-igraph使用适用于Python 3的pip进行安装时,出现以下编译器错误。我可以更改某些内容吗,或者这是igraph中的错误?请注意最后一行cc1: some warnings being treated as errors-如果它们只是警告,我可以以某种方式忽略它们吗?

Extracting igraph-0.7.0.tar.gz...

Configuring igraph...

Build type: static extension

Include path: igraphcore/include

Library path: igraphcore/lib /usr/local/lib64 /usr/local/lib /usr/lib64 /usr/lib /lib64 /lib

Linked dynamic libraries: xml2 z m stdc++

Linked static libraries: igraphcore/lib/libigraph.a

Extra compiler options:

Extra linker options:

building 'igraph._igraph' extension

creating build/temp.linux-x86_64-3.4

creating build/temp.linux-x86_64-3.4/src

gcc -pthread -Wno-unused-result -Werror=declaration-after-statement -DNDEBUG -fmessage-length=0 -O2 -Wall -D_FORTIFY_SOURCE=2 -fstack-protector -funwind-tables -fasynchronous-unwind-tables -g -DOPENSSL_LOAD_CONF -fPIC -Iigraphcore/include -I../../build/include -I../../include -I/usr/local/include/igraph -I/usr/include/igraph -I/usr/include/python3.4m -c src/edgeobject.c -o build/temp.linux-x86_64-3.4/src/edgeobject.o

gcc -pthread -Wno-unused-result -Werror=declaration-after-statement -DNDEBUG -fmessage-length=0 -O2 -Wall -D_FORTIFY_SOURCE=2 -fstack-protector -funwind-tables -fasynchronous-unwind-tables -g -DOPENSSL_LOAD_CONF -fPIC -Iigraphcore/include -I../../build/include -I../../include -I/usr/local/include/igraph -I/usr/include/igraph -I/usr/include/python3.4m -c src/igraphmodule.c -o build/temp.linux-x86_64-3.4/src/igraphmodule.o

gcc -pthread -Wno-unused-result -Werror=declaration-after-statement -DNDEBUG -fmessage-length=0 -O2 -Wall -D_FORTIFY_SOURCE=2 -fstack-protector -funwind-tables -fasynchronous-unwind-tables -g -DOPENSSL_LOAD_CONF -fPIC -Iigraphcore/include -I../../build/include -I../../include -I/usr/local/include/igraph -I/usr/include/igraph -I/usr/include/python3.4m -c src/edgeseqobject.c -o build/temp.linux-x86_64-3.4/src/edgeseqobject.o

gcc -pthread -Wno-unused-result -Werror=declaration-after-statement -DNDEBUG -fmessage-length=0 -O2 -Wall -D_FORTIFY_SOURCE=2 -fstack-protector -funwind-tables -fasynchronous-unwind-tables -g -DOPENSSL_LOAD_CONF -fPIC -Iigraphcore/include -I../../build/include -I../../include -I/usr/local/include/igraph -I/usr/include/igraph -I/usr/include/python3.4m -c src/filehandle.c -o build/temp.linux-x86_64-3.4/src/filehandle.o

src/filehandle.c: In function ‘igraphmodule_filehandle_init’:

src/filehandle.c:38:5: error: ISO C90 forbids mixed declarations and code [-Werror=declaration-after-statement]

cc1: some warnings being treated as errors

error: command 'gcc' failed with exit status 1

----------------------------------------
Cleaning up...
Command /usr/bin/python3 -c "import setuptools, tokenize;__file__='/export/tmp/pip_build_root/python-igraph/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /tmp/pip-o27hxbqk-record/install-record.txt --single-version-externally-managed --compile failed with error code 1 in /export/tmp/pip_build_root/python-igraph
Storing debug log for failure in /root/.pip/pip.log
汤玛士

最近在igraph中对此进行了修补;请参阅Github上相应问题

本文收集自互联网,转载请注明来源。

如有侵权,请联系[email protected] 删除。

编辑于
0

我来说两句

0条评论
登录后参与评论

相关文章

来自分类Dev

安装python-igraph的编译器错误:警告被视为错误

来自分类Dev

为python 3.4 pip安装igraph:编译器错误

来自分类Dev

Symfony - 安装 FOSJsRoutingBundle(编译器错误)

来自分类Dev

如何使Kotlin编译器将警告视为错误?

来自分类Dev

配置:错误:在安装Python时,在Debian 5的$ PATH错误中找不到可接受的C编译器

来自分类常见问题

lxml安装错误ubuntu 14.04(内部编译器错误)

来自分类Dev

将所有警告视为错误时,Xcode忽略-w编译器标志

来自分类Dev

CMake安装找不到库并指向错误的编译器版本

来自分类Dev

Kivy Apk build with buildozer错误:#找不到Java编译器(javac),请安装

来自分类Dev

Windows 10中Omnet ++中的安装错误,找不到C编译器

来自分类Dev

CMake安装找不到库并指向错误的编译器版本

来自分类Dev

尝试在Android Studio中安装按钮时出现编译器错误

来自分类Dev

CLion:启用编译器错误/警告

来自分类Dev

operator []编译器错误和警告

来自分类Dev

“错误的” Python安装

来自分类Dev

在线编译器中 Python 中的副作用错误

来自分类Dev

权限被拒绝的错误靠近python模块(igraph)安装结束

来自分类Dev

安装乳胶编译器

来自分类Dev

配置:错误:安装Ruby 1.9.3时C编译器无法创建可执行文件

来自分类Dev

安装memcached时,我收到“配置:错误:在$ PATH中找不到可接受的C编译器”

来自分类Dev

Inno安装程序:创建布尔值或整数过程时,出现编译器错误“期望的分号(;)”

来自分类Dev

Python 3.3安装错误-中止安装

来自分类Dev

Python pip安装错误

来自分类Dev

python IDE安装中的错误

来自分类Dev

igraph python导入错误

来自分类Dev

无法安装python-igraph

来自分类Dev

在Debian中安装交叉编译器

来自分类Dev

在Azure Pipelines上安装编译器

来自分类Dev

matlab编译器安装问题

Related 相关文章

  1. 1

    安装python-igraph的编译器错误:警告被视为错误

  2. 2

    为python 3.4 pip安装igraph:编译器错误

  3. 3

    Symfony - 安装 FOSJsRoutingBundle(编译器错误)

  4. 4

    如何使Kotlin编译器将警告视为错误?

  5. 5

    配置:错误:在安装Python时,在Debian 5的$ PATH错误中找不到可接受的C编译器

  6. 6

    lxml安装错误ubuntu 14.04(内部编译器错误)

  7. 7

    将所有警告视为错误时,Xcode忽略-w编译器标志

  8. 8

    CMake安装找不到库并指向错误的编译器版本

  9. 9

    Kivy Apk build with buildozer错误:#找不到Java编译器(javac),请安装

  10. 10

    Windows 10中Omnet ++中的安装错误,找不到C编译器

  11. 11

    CMake安装找不到库并指向错误的编译器版本

  12. 12

    尝试在Android Studio中安装按钮时出现编译器错误

  13. 13

    CLion:启用编译器错误/警告

  14. 14

    operator []编译器错误和警告

  15. 15

    “错误的” Python安装

  16. 16

    在线编译器中 Python 中的副作用错误

  17. 17

    权限被拒绝的错误靠近python模块(igraph)安装结束

  18. 18

    安装乳胶编译器

  19. 19

    配置:错误:安装Ruby 1.9.3时C编译器无法创建可执行文件

  20. 20

    安装memcached时,我收到“配置:错误:在$ PATH中找不到可接受的C编译器”

  21. 21

    Inno安装程序:创建布尔值或整数过程时,出现编译器错误“期望的分号(;)”

  22. 22

    Python 3.3安装错误-中止安装

  23. 23

    Python pip安装错误

  24. 24

    python IDE安装中的错误

  25. 25

    igraph python导入错误

  26. 26

    无法安装python-igraph

  27. 27

    在Debian中安装交叉编译器

  28. 28

    在Azure Pipelines上安装编译器

  29. 29

    matlab编译器安装问题

热门标签

归档