make bzImage报查询报错文件sign-file.c文件,报错内容为fatal error: openssl/opensslv.h: No such file or directory
2024-04-21
9
0
linux内核报错fatal error: openssl/opensslv.h: No such file or directory
编译linux内核版本编译scripts目录时报错
HOSTCC scripts/conmakehash
HOSTCC scripts/recordmcount
HOSTCC scripts/sortextable
HOSTCC scripts/asn1_compiler
HOSTCC scripts/sign-file
scripts/sign-file.c:25:10: fatal error: openssl/opensslv.h: 没有那个文件或目录
25 | #include <openssl/opensslv.h>
| ^~~~~~~~~~~~~~~~~~~~
compilation terminated.
make[1]: *** [scripts/Makefile.host:107:scripts/sign-file] 错误 1
make: *** [Makefile:1097:scripts] 错误 2
查询报错文件sign-file.c文件,报错内容为fatal error: openssl/opensslv.h: No such file or directory
根据查找为编译环境中缺少libcrypto库,编译环境为ubuntu环境
usbzh@usbzh-pc:~/work/linuxsrc/linux-5.4.1$ sudo apt install libssl-dev