SamNa
SamNa

Reputation: 43

compilation linux kernel openssl/opensslv.h error

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

Upvotes: 0

Views: 1603

Answers (1)

caylee
caylee

Reputation: 941

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

Upvotes: 1

Related Questions