我在Debian测试中安装了libboost1.54-dev
和libboost-filesystem1.54-dev
,并尝试运行./configure
来查找要链接的库。我在AX_BOOST_BASE[1.53]
文件中使用了configure.ac
,并在
$ 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>
?
答案 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
(手动)。
注意:FTBFS代表“无法从源构建”。