Home > Software design >  Could not find header file for OPENSSL
Could not find header file for OPENSSL

Time:04-06

I am trying to install Luasec on Ubuntu terminal, but it just keeps displaying this error to me:

Error: Could not find header file for OPENSSL
   No file openssl/ssl.h in /usr/local/include
   No file openssl.h/ssl.h/ in /usr/include
   No file openssl/ssl.h in /include
You may have to install OPENSSL in your system and/or pass OPENSSL_DIR or OPENSSL_INCDIR to the luarocks command.

When I check OpenSSL version it says its 1.1.1f

enter image description here

So how do I proceed?

CodePudding user response:

Fixed the issue by Installing OpenSSL with terminal through Luarocks with the command:

Luarocks install openssl

And now after installing it, it works.

  • Related