简体   繁体   English

在Debian上使用AX_BOOST_BASE找不到增强

[英]Can not find boost using AX_BOOST_BASE on Debian

I installed libboost1.54-dev and libboost-filesystem1.54-dev on Debian testing and try to run ./configure to find the library to link with. 我在Debian测试中安装了libboost1.54-devlibboost-filesystem1.54-dev ,并尝试运行./configure查找要链接的库。 I used AX_BOOST_BASE[1.53] in configure.ac file and boost libraries are installed in 我在configure.ac文件中使用了AX_BOOST_BASE[1.53] ,并在其中安装了boost库

$ ls /usr/lib/x86_64-linux-gnu/libboost_*
libboost_filesystem.a          libboost_filesystem.so         libboost_filesystem.so.1.54.0
....

When I run ./configure , the outputs 当我运行./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!

The output in config.log 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!

At the last, ldconfig looks good. 最后, 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

How could I run ./configure successfully without using ./configure --with-boost-lib=<PATH> ? 如何在不使用./configure --with-boost-lib=<PATH>情况下成功运行./configure

Looks like there is a bug somewhere (autoconf?) and until it fixed there are two options: 看起来某个地方有一个错误(autoconf?),直到它修复,有两个选择:

Either add --with-boost-libdir=/usr/lib/$(DEB_HOST_MULTIARCH) to "debian/rules" as described in wiki.debian.org/qa.debian.org/FTBFS (for Debian packages) wiki.debian.org/qa.debian.org/FTBFS中所述,将--with-boost-libdir=/usr/lib/$(DEB_HOST_MULTIARCH)到“ debian / rules”(对于Debian软件包)。

or to pass --with-boost-libdir=/usr/lib/$(dpkg-architecture -qDEB_HOST_MULTIARCH) to configure (manually). 或通过--with-boost-libdir=/usr/lib/$(dpkg-architecture -qDEB_HOST_MULTIARCH)进行configure (手动)。

See also dpkg-architecture(1) . 另请参见dpkg-architecture(1)

Note: FTBFS stands for "Fails To Build From Source". 注意:FTBFS代表“无法从源代码构建”。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM