简体   繁体   English

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

[英]configure: error: Could not find a version of the library

I am building this DNP3 program and when I follow the build instructions./configure does not make a make file.我正在构建这个 DNP3 程序,当我按照构建说明进行操作时。/configure 不会生成 make 文件。 When I run it I get the following output:当我运行它时,我得到以下 output:

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!

I think the last line may be causing the problem, but I have no idea what "the library" is.我认为最后一行可能是导致问题的原因,但我不知道“图书馆”是什么。 I installed boost with "sudo apt-get install libboost-all-dev" so I don't think that's it, but I have no idea.我用“sudo apt-get install libboost-all-dev”安装了 boost,所以我不认为是这样,但我不知道。

The other answer almost worked for me.另一个答案几乎对我有用。 Try this, which is more likely if you're on a 64-bit machine:试试这个,如果你在 64 位机器上,这更有可能:

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

(worked on Ubuntu 14.04) (适用于 Ubuntu 14.04)

I solved by adding the library path with "--with-boost-libdir" to "configure".我通过将带有“--with-boost-libdir”的库路径添加到“配置”来解决。 The path depends on the CPU architecture.路径取决于 CPU 架构。 For raspberry pi 3, for example, the command is:例如,对于树莓派 3,命令是:

./configure --with-boost-libdir=/usr/lib/arm-linux-gnueabihf/

None of the presented directories by the other answers didn't work for me even though I had this /usr/lib/x86_64-linux-gnu/ directory with its files inside.即使我有这个/usr/lib/x86_64-linux-gnu/目录及其文件,其他答案提供的目录都不适合我。

So I managed to fix it by installing all the relevant dependencies: sudo apt-get install libboost-all-dev所以我设法通过安装所有相关的依赖项来修复它: sudo apt-get install libboost-all-dev

I've been sticking with the error while trying to config bitcoin core BTW.我在尝试配置比特币核心 BTW 时一直坚持错误。

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

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

对于 openSUSE Tumbleweed,您应该安装 libboost-x1_77_0-devel 软件包及其依赖项,其中 x 是:系统、文件系统、测试和任何其他所需的(您将看到错误消息还需要什么)

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 PHP配置错误DBA:无法找到必要的头文件 - PHP configure error DBA: Could not find necessary header file(s) 运行`helm version`时`错误:找不到分蘖` - `Error: could not find tiller` when running `helm version` docker 错误:找不到满足要求 apturl==0.5.2 的版本 - docker ERROR: Could not find a version that satisfies the requirement apturl==0.5.2 错误:找不到 R 版本 2.15.2 的函数 install_github - error: could not find function install_github for R version 2.15.2 Linux软件安装-./configure中库的替代版本 - Linux software installation - override version of library in ./configure autotools 配置脚本中的版本错误 - Version error in autotools configure script 错误:找不到满足 tensorflow==2.1.0 要求的版本,并且未找到 tensorflow==2.1.0 的匹配分布 - ERROR: Could not find a version that satisfies the requirement tensorflow==2.1.0 and No matching distribution found for tensorflow==2.1.0 Pyserial:无法配置端口:(5,'输入/输出错误) - Pyserial: could not configure port: (5, 'Input/output error) Tensorflow 源构建配置失败:找不到任何 cuda.h 匹配版本和字典值错误 - Tensorflow source build configuration fails: Could not find any cuda.h matching version and dictionary value error Buildroot:`FindPackageHandleStandardArgs.cmake:230 处的 CMake 错误(消息):找不到 Boost(缺少:线程)(找到版本“1.80.0”)` - Buildroot: `CMake Error at FindPackageHandleStandardArgs.cmake:230 (message): Could NOT find Boost (missing: thread) (found version "1.80.0")`
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM