使用OpenSSL进行编译时缺少CMake变量

时间:2013-03-18 11:50:01

标签: linux compilation cmake

我正在尝试使用CMake在Debian上编译servermod。似乎已经安装了所有必需的软件包。如果我开始编译,我会收到此错误:

    CMake Error: The following variables are used in this project, but they are set to NOTFOUND.
    Please set them or make sure they are set and tested correctly in the CMake files:
    OPENSSL_CRYPTO_LIBRARIES (ADVANCED)

    OPENSSL_INCLUDE_DIR (ADVANCED)

    OPENSSL_SSL_LIBRARIES (ADVANCED)

我完全不知道如何修复它。它必须在哪里设置?

1 个答案:

答案 0 :(得分:2)

您可能需要安装openssl的开发工具包。

apt install libssl-dev

我遇到了同样的问题,并为我解决了这个问题。