configure:error:找不到该库的版本

问题描述 投票:0回答:2

我正在构建this DNP3 program,当我按照构建说明./configure不会生成make文件。当我运行它时,我得到以下输出:

checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking whether make supports nested variables... yes
checking for style of include used by make... GNU
checking for g++... g++
checking whether the C++ compiler works... yes
checking for C++ compiler default output file name... a.out
checking for suffix of executables... 
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking dependency style of g++... gcc3
checking for boostlib >= 1.43... yes
checking for gcc... gcc
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking whether gcc understands -c and -o together... yes
checking dependency style of gcc... gcc3
checking whether the Boost::Date_Time library is available... yes
configure: error: Could not find a version of the library!

我认为最后一行可能会导致问题,但我不知道“库”是什么。我用“sudo apt-get install libboost-all-dev”安装了boost,所以我不认为是这样,但我不知道。

linux boost makefile configure
2个回答
1
投票

另一个答案几乎对我有用。试试这个,如果您使用的是64位计算机,则更有可能:

./configure --with-boost-libdir=/usr/lib/x86_64-linux-gnu/

(曾在Ubuntu 14.04上工作)


0
投票

我能够使用./configure命令的以下更改来绕过它:

./configure --with-boost-libdir=/usr/lib/i386-linux-gnu/
© www.soinside.com 2019 - 2024. All rights reserved.