我试图在没有在menuconfig选择TCP / IP协议的情况下编译Linux内核,但是当我尝试编译时遇到了这个错误:
scripts / sign-file.c:25:30:致命错误:openssl / opensslv.h:没有这样的文件或目录
编译我使用这个命令:
fakeroot make-kpkg --initrd --append-to-version=-custom kernel_image kernel_headers我正在使用linux-4.10.1的内核
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: 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_headersI'm working with linux-4.10.1's kernel
最满意答案
由于make-kpkg是Debian特有的工具,我假设你使用的是Debian发行版; 你提到它是Ubuntu。
看起来你没有构建内核的依赖关系。 您可以使用以下方法安装它们(在Debian / Ubuntu上):
# apt build-dep linux如果APT缺少源地址,请修改/etc/apt/sources.list以包含一行:
deb-src http://de.archive.ubuntu.com/ubuntu/ DIST main它应该在该文件中注释(因此前缀为#)。 如果是这样,只需删除#,否则复制deb ...行并将deb更改为deb-src 。 请记住随后重新加载软件包源代码:
# apt updateAs make-kpkg is a Debian-specific tool, I assume you are using a Debian distribution; you mentioned it is 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 linuxIf 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 mainIt 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更多推荐
发布评论