欢迎您访问程序员文章站本站旨在为大家提供分享程序员计算机编程知识!
您现在的位置是: 首页

Linux内核编译时出现fatal error: openssl/opensslv.h: No such file or directory错误的解决办法

程序员文章站 2022-07-15 16:49:02
...

参考:

1、https://*.com/questions/46008624/how-to-fix-fatal-error-openssl-opensslv-h-no-such-file-or-directory-in-redhat

2、http://ask.xmodulo.com/fix-fatal-error-openssl.html

fatal error: openssl/opensslv.h: No such file or directory

If you encounter this error during compilation, this is because of the following: The program you are trying to build is using OpenSSL, but necessary development files (libraries and header files) required to link with OpenSSL are missing on your Linux platform.

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 

After installing the package, try recompiling the program