在 ubuntu 14.04 上安装图形工具时配置错误

Configure error while installing graph-tool on ubuntu 14.04

所以我花了一整天的时间来寻找解决方案。我正在尝试使用 14.04 OS 在我的机器上安装图形工具。最初我无法成功,因为我的机器上没有 gcc 5。安装后,我正在尝试以下操作:

./configure CXX='g++5'

我收到以下错误:

===========================
Using python version: 2.7.6
===========================
checking for boostlib >= 1.54.0... configure: We could not detect the boost libraries (version 1.54 or higher). If you have a staged boost library (still not installed) please specify $BOOST_ROOT in your environment and do not give a PATH to --with-boost option.  If you are sure you have boost installed, then check your version number looking in <boost/version.hpp>. See http://randspringer.de/boost for more documentation.
checking whether the Boost::Python library is available... no
configure: error: No usable boost::python found

我在 graph-tool 或 Whosebug 的邮件列表上没有看到关于这个问题的解决方案。如果有人能帮我解决这个问题,我将不胜感激。

提前致谢。

ubuntu 14.04 上的 boost 包和一些图形工具函数存在一些问题(请参阅 and http://main-discussion-list-for-the-graph-tool-project.982480.n3.nabble.com/Debian-package-and-boost-at-compile-time-td4026383.html)。目前似乎有必要从源代码编译 boost,直到将更新版本的 boost 上传到存储库,以便 graph-tool 完全工作。

修复此错误后 (https://bugs.launchpad.net/ubuntu/+source/boost1.54/+bug/1529289),它将不再是问题。

在 Debian 中,库几乎总是分成两个包:一个 包含共享对象和另一个带有“-dev”后缀的共享对象 包含头文件。对于 cairomm,您需要安装 libcairomm-1.0-dev 包,除了 libcairomm-1.0.

开罗支持可选的。如果你想禁用它,只需通过 配置脚本的 --disable-cairo。

来源:https://lists.skewed.de/pipermail/graph-tool/2013-November/001094.html