概述
系统:
Ubuntu 20.04.4 LTS
错误信息:
checking for libmicrohttpd... no
checking for libcurl... no
checking for sqlite3... no
checking for libarchive... no
configure: error: C++ compiler or dependencies not found, use --disable-debuginfod to disable.
原因是需要安装libmicrohttpd、libcurl 、sqlite3、libarchive四个第三方库。
但是如果直接使用命令sudo apt install curl ,结果还是一样。需要安装带有-dev的包
sudo apt-get install libcurl4-openssl-dev
sudo apt-get install libsqlite3-dev
sudo apt-get install libarchive-dev
sudo apt-get install libmicrohttpd-dev
分别执行完上面的命令之后,重新执行./configure
结果输出:
......
checking for libmicrohttpd... yes
checking for libcurl... yes
checking for sqlite3... yes
checking for libarchive... yes
checking that generated files are newer than configure... done
configure: creating ./config.status
config.status: creating config/Makefile
config.status: creating Makefile
config.status: creating m4/Makefile
config.status: creating elfutils.spec
config.status: creating debuginfod/Makefile
config.status: creating doc/Makefile
config.status: creating lib/Makefile
config.status: creating libelf/Makefile
config.status: creating libebl/Makefile
config.status: creating libdwelf/Makefile
config.status: creating libdw/Makefile
config.status: creating libdwfl/Makefile
config.status: creating libcpu/Makefile
config.status: creating libasm/Makefile
config.status: creating backends/Makefile
config.status: creating src/Makefile
config.status: creating po/Makefile.in
config.status: creating tests/Makefile
config.status: creating config/libelf.pc
config.status: creating config/libdw.pc
config.status: creating config/libdebuginfod.pc
config.status: creating version.h
config.status: creating config.h
config.status: executing depfiles commands
config.status: executing po-directories commands
config.status: creating po/POTFILES
config.status: creating po/Makefile
configure:
=====================================================================
elfutils: 0.178 (eu_version: 178)
=====================================================================
Prefix : /usr/local
Program prefix ("eu-" recommended) : eu-
Source code location : .
Maintainer mode :
build arch : x86_64-pc-linux-gnu
RECOMMENDED FEATURES (should all be yes)
gzip support : yes
bzip2 support : no
lzma/xz support : no
libstdc++ demangle support : yes
File textrel check : yes
Symbol versioning : yes
NOT RECOMMENDED FEATURES (should all be no)
Experimental thread safety : no
install elf.h : no
OTHER FEATURES
Deterministic archives by default : false
Native language support : yes
Extra Valgrind annotations : no
Debuginfod client/server support : yes
EXTRA TEST FEATURES (used with make check)
have bunzip2 installed (required) : yes
debug branch prediction : no
gprof support : no
gcov support : no
run all tests under valgrind : no
gcc undefined behaviour sanitizer : no
use rpath in tests : no
test biarch : no
基本上说明依赖库都已安装成功了。
最后
以上就是长情大侠为你收集整理的elfutils-0.178 configure 报错的全部内容,希望文章能够帮你解决elfutils-0.178 configure 报错所遇到的程序开发问题。
如果觉得靠谱客网站的内容还不错,欢迎将靠谱客网站推荐给程序员好友。
本图文内容来源于网友提供,作为学习参考使用,或来自网络收集整理,版权属于原作者所有。
发表评论 取消回复