How to fix: fatal error: openssl / opensslv.h: no such file or directory in RedHat 7

I have RedHat Enterprise Linux Server 7, and I downloaded the Linux kernel version 4.12.10, which I am trying to compile, but when I execute the following command:

make modules 

I get the following error:

 scripts/sign-file.c:25:30: fatal error: openssl/opensslv.h: No such file or directory 

Anyone have an idea to fix this, please?

+5
source share
1 answer

To fix this problem, you need to install the OpenSSL development package, which is available in the standard repositories of all modern Linux distributions.

To install the OpenSSL development kit on Debian, Ubuntu, or their derivatives:

 $ sudo apt-get install libssl-dev 

To install the OpenSSL development kit on Fedora, CentOS, or RHEL:

 $ sudo yum install openssl-devel 

see this link for more information

Edit: As @isapir noted, for Fedora version> = 22, use the DNF package manager:

 dnf install openssl-devel 
+14
source

Source: https://habr.com/ru/post/1271437/


All Articles