compilation linux kernel openssl/opensslv.h error

China☆狼群 提交于 2020-02-06 08:29:25

问题


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_headers

I'm working with linux-4.10.1's kernel


回答1:


As 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 linux

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

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


来源:https://stackoverflow.com/questions/49652963/compilation-linux-kernel-openssl-opensslv-h-error

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!