在Debian上使用AX_BOOST_BASE无法找到提升

时间:2014-01-07 05:55:33

标签: c++ linux boost build debian

我在Debian测试中安装了libboost1.54-devlibboost-filesystem1.54-dev,并尝试运行./configure来查找要链接的库。我在AX_BOOST_BASE[1.53]文件中使用了configure.ac,并在

中安装了boost库
$ ls /usr/lib/x86_64-linux-gnu/libboost_*
libboost_filesystem.a          libboost_filesystem.so         libboost_filesystem.so.1.54.0
....

当我运行./configure时,输出

checking for boostlib >= 1.53... yes
checking whether the Boost::Filesystem library is available... yes
configure: error: Could not find a version of the library!

config.log

中的输出
configure:17360: checking for boostlib >= 1.53
configure:17431: g++ -c -g -O2  -I/usr/include conftest.cpp >&5
configure:17431: $? = 0
configure:17433: result: yes
configure:17614: checking whether the Boost::Filesystem library is available
configure:17638: g++ -c -g -O2  -I/usr/include conftest.cpp >&5
configure:17638: $? = 0
configure:17652: result: yes
configure:17806: error: Could not find a version of the library!

最后,ldconfig看起来不错。

$ cat /etc/ld.so.conf.d/x86_64-linux-gnu.conf
# Multiarch support
/lib/x86_64-linux-gnu
/usr/lib/x86_64-linux-gnu

如何在不使用./configure的情况下成功运行./configure --with-boost-lib=<PATH>

1 个答案:

答案 0 :(得分:0)

看起来某个地方有一个错误(autoconf?),直到修复它有两个选项:

wiki.debian.org/qa.debian.org/FTBFS(针对Debian个包裹)中所述,将--with-boost-libdir=/usr/lib/$(DEB_HOST_MULTIARCH)添加到“debian / rules”

或将--with-boost-libdir=/usr/lib/$(dpkg-architecture -qDEB_HOST_MULTIARCH)传递给configure(手动)。

另见dpkg-architecture(1)

注意:FTBFS代表“无法从源构建”。