[英]Can not find boost using AX_BOOST_BASE on Debian
我在Debian测试中安装了libboost1.54-dev
和libboost-filesystem1.54-dev
,并尝试运行./configure
查找要链接的库。 我在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
....
当我运行./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 --with-boost-lib=<PATH>
情况下成功运行./configure
?
看起来某个地方有一个错误(autoconf?),直到它修复,有两个选择:
如wiki.debian.org/qa.debian.org/FTBFS中所述,将--with-boost-libdir=/usr/lib/$(DEB_HOST_MULTIARCH)
到“ debian / rules”(对于Debian软件包)。
或通过--with-boost-libdir=/usr/lib/$(dpkg-architecture -qDEB_HOST_MULTIARCH)
进行configure
(手动)。
另请参见dpkg-architecture(1) 。
注意:FTBFS代表“无法从源代码构建”。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.