编译linux内核openssl/opensslv.h错误 [英] compilation linux kernel openssl/opensslv.h error
问题描述
我试图在不选择menuconfig
中选择TCP/IP协议的情况下编译Linux内核,但是在尝试编译时会遇到此错误:
I am trying to compile a Linux kernel without selecting the TCP/IP protocol in menuconfig
but I face this error when I try to compile:
scripts/sign-file.c:25:30:致命错误:openssl/opensslv.h:否这样 文件或目录
scripts/sign-file.c:25:30: fatal error: openssl/opensslv.h: No such file or directory
要编译,请使用以下命令:
To compile I use this command:
fakeroot make-kpkg --initrd --append-to-version=-custom kernel_image kernel_headers
我正在使用linux-4.10.1的内核
I'm working with linux-4.10.1's kernel
推荐答案
由于make-kpkg
是特定于Debian的工具,因此我假设您使用的是Debian发行版.您提到它是Ubuntu.
As make-kpkg
is a Debian-specific tool, I assume you are using a Debian distribution; you mentioned it is Ubuntu.
看起来您没有用于构建内核的依赖项.您可以使用以下命令安装它们(在Debian/Ubuntu上):
It looks like you don't have the dependencies for building the kernel installed. You can install them (on Debian/Ubuntu) using:
# apt build-dep linux
如果APT缺少源地址,则将/etc/apt/sources.list
修改为包含以下行:
If APT is missing source addresses, modify your /etc/apt/sources.list
to contain a line as:
deb-src http://de.archive.ubuntu.com/ubuntu/ DIST main
应在该文件中添加注释(以#开头).如果是这样,只需删除#,否则复制deb ...
行并将deb
更改为deb-src
.请记住,之后再重新加载程序包源:
It should be commented in that file (so prefixed with a #). If so, just remove the #, otherwise copy the deb ...
line and change deb
to deb-src
. Remember to reload package sources afterwards:
# apt update
这篇关于编译linux内核openssl/opensslv.h错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!