httpluaopensslluarocksluasec

Could not find header file for OPENSSL


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?


Solution

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

    Luarocks install openssl
    

    And now after installing it, it works.