找不到 OPENSSL 的头文件

Could not find header file for OPENSSL

我正在尝试在 Ubuntu 终端上安装 Luasec,但它一直向我显示此错误:

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.

当我检查 OpenSSL 版本时,它说它是 1.1.1f

那么我该如何进行呢?

通过 Luarocks 使用终端安装 OpenSSL 解决了问题:

Luarocks install openssl

现在安装后就可以了。