首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >配置:错误:找不到库的版本

配置:错误:找不到库的版本
EN

Stack Overflow用户
提问于 2018-11-01 02:00:59
回答 5查看 4.9K关注 0票数 3

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

代码语言:javascript
复制
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,所以我不认为这就是它,但我不知道。

EN

回答 5

Stack Overflow用户

发布于 2019-04-24 07:17:43

另一个答案几乎对我有效。试试这个,如果你在64位机器上,这是更有可能的:

代码语言:javascript
复制
./configure --with-boost-libdir=/usr/lib/x86_64-linux-gnu/

(适用于Ubuntu 14.04)

票数 9
EN

Stack Overflow用户

发布于 2021-02-27 17:49:39

我通过将库路径“-- with -with libdir”添加到"configure“中解决了这个问题。路径取决于CPU体系结构。例如,对于raspberry pi 3,命令是:

代码语言:javascript
复制
./configure --with-boost-libdir=/usr/lib/arm-linux-gnueabihf/
票数 4
EN

Stack Overflow用户

发布于 2019-04-06 01:32:38

通过对./configure命令进行以下更改,我可以解决这个问题:

代码语言:javascript
复制
./configure --with-boost-libdir=/usr/lib/i386-linux-gnu/
票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/53089494

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档