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

前端 未结 3 600
萌比男神i
萌比男神i 2020-12-24 11:35

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:

<         


        
相关标签:
3条回答
  • 2020-12-24 11:40

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

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

    $ sudo apt-get install libssl-dev
    

    To install OpenSSL development package on Fedora, CentOS or RHEL:

    $ sudo yum install openssl-devel 
    

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

    dnf install openssl-devel
    
    0 讨论(0)
  • 2020-12-24 11:51

    For Alpine Linux:

    apk add openssl-dev
    
    0 讨论(0)
  • 2020-12-24 11:55

    On CYGwin, you can install this as a typical package in the first screen. Look for

    libssl-devel

    0 讨论(0)
提交回复
热议问题