Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

Tags:

kernel

I have tried to recompile the kernel with make command for config but this error occured:

scripts/extract-cert.c:21:10: fatal error: openssl/bio.h: No such file or directory
 #include <openssl/bio.h>

So then a i have tried install libssl-dev:

Reading package lists... Done
Building dependency tree       
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
 libssl-dev : Depends: libssl1.1 (= 1.1.1b-1ubuntu2) but 1.1.1b-1ubuntu2.1 is to be installed
E: Unable to correct problems, you have held broken packages.

Can anyone tell me how can i fix my dependecies? And why do I have them broken?

like image 928
Herdsman Avatar asked Nov 24 '19 10:11

Herdsman


People also ask

How to fix OpenSSL fatal error-no such file or directory?

fatal error: openssl/aes.h: No such file or directory ... 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:

How to fix error Err h in OpenSSL?

Well, the above output says that err.h file is shipped with OpenSSL development package. So installing openssl-devel should fix the error. Now, OpenCA tools package should compile without an error. Hope it helps someone out there.

Why can't my compiler read the OpenSSL header files?

probably you are missing the openssl header files. depending on your distribution this package might have a different name, mostly it's something like openssl-dev or openssl-devel. after you installed the openssl header files, the compiler should be able to find openssl/sha.h. In Ubuntu/Debian the package is called libssl-dev.

Why am I getting a “OpenSSL not available” error during compilation?

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.


Video Answer


1 Answers

Try to install aptitude and use this tool for downgrading of libssl-dev.

$ sudo apt-get install aptitude

After this step use aptitude to downgrade your to 1.1.1b-1ubuntu2 from 1.1.1b-1ubuntu2.1

$ sudo aptitude install libssl-dev

Choose carefully the option. This will solve your problem.

like image 136
Pintu Choudhary Avatar answered Oct 22 '22 19:10

Pintu Choudhary