我是 Ubuntu 的新手。我下载了一个 python 模块 graph-tool-2.22
。我在 graph-tool-2.22
目录下命令后
./configure
,它会导致配置错误。
$ ./configure
....blah
....blah
checking whether g++ supports C++14 features by default... no
checking whether g++ supports C++14 features with -std=gnu++14... no
checking whether g++ supports C++14 features with -std=gnu++1y... no
configure: error: *** A compiler with support for C++14 language features is required.
它说需要 c++14,但是,当然我的电脑中有 g++ (Ubuntu 4.8.4-2ubuntu1~14.04.3) 4.8.4。问题是什么?
最佳答案
您的 gcc 版本似乎不支持 graph-tool-2.22
需要的 C++14。
正如 C++14 语言特性 部分中的 gcc site 所提到的,gcc 5
对 C++14 的完全支持,还有合理数量的特性可用 gcc 4.9
。
您可能想升级到 gcc 5
,也许是升级到 Ubuntu 16.04。 Ubuntu 14.04 旧了
关于python - 在 Ubuntu 中安装图形工具时配置错误(需要 c++14),我们在Stack Overflow上找到一个类似的问题:https://stackoverflow.com/questions/45511117/