2

所以我花了一整天的时间试图找出解决方案。我正在尝试在具有 14.04 操作系统的机器上安装图形工具。最初我无法成功,因为我的机器上没有 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 或 stackoverflow 的邮件列表中看不到有关此问题的解决方案。如果有人可以帮助我,我将不胜感激。

提前致谢。

4

2 回答 2

3

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

开罗支持可选的。如果要禁用它,只需将 --disable-cairo 传递给配置脚本。

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

于 2016-11-01T09:23:14.007 回答
0

ubuntu 14.04 上的 boost 包和一些图形工具功能存在一些问题(请参阅图形工具 - k-shortest path - boost::coroutine was not found at compile-time 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 上传到存储库才能使图形工具充分工作。

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

于 2016-06-21T17:51:17.907 回答