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

标签 linux boost makefile configure

我正在 build 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,所以我不认为是这样,但我不知道。

最佳答案

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

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

(在 Ubuntu 14.04 上工作)

关于linux - 配置:错误:找不到库的版本,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/53089494/

相关文章:

c++ - Boost String Replace 不会用字符串替换换行符

c - Ubuntu 第一次编译内核模块

linux - 从 bash 脚本调用时,Makefile 删除参数后的空白值

linux - 如何停止nginx?它不断杀死一个进程并打开一个具有不同 pid 的新进程

php - UTF-8贯穿始终

python - 使用 Boost Python 公开带有带有数组参数的构造函数的类

makefile - 你能优先考虑 makefile 目标吗?

php - 拒绝访问 PHP 文件 (Nginx)

linux - g++-4.3在linux下qt5.8找不到

c++ - 对 Boost bcp 行为感到困惑