Home » Errors & Failures » Fixed : openssl/opensslv.h: No such file or directory

Fixed : openssl/opensslv.h: No such file or directory

When trying to compile some packages / libraries or application source codes in Linux which are based on openssl , we may get an following compilation error,

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

Solution :

On Ubuntu, this file is normally present at “/usr/include/openssl/opensslv.h”

If this file is not present, we have to install the OpneSSL development package which can install this headers on Ubuntu.

$ sudo apt-get install libssl-dev

Leave a Comment