尽管我安装了 open ssl,但它找不到库在哪里。openssl 默认存在于我的 Ubuntu 中,但仍然找不到,因此我下载了一个新发行版并将其重新安装到 /usr/local/ssl 。我通过默认的 cmake 命令安装:
cmake ..
以及明确指定路径:
cmake -DCMAKE_INCLUDE_PATH=/usr/local/ssl/include -DCMAKE_LIBRARY_PATH=/usr/local/ssl/lib ..
它不断产生此错误:
-- Looking for ICU libraries
-- ICU not found, disabling ICU localization backend
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:
PCRE_LIB
linked by target "booster" in directory /home/hoangtu/Programs/cppcms-0.99.7/booster
linked by target "booster-static" in directory /home/hoangtu/Programs/cppcms-0.99.7/booster
这是什么意思?它应该找到打开的 ssl。ICU 也默认安装在 Ubuntu 中。另外,最后两行是关于什么的?
编辑:好的,我下载并安装了 ICU 到我的 usr 目录。现在发现ICU。现在唯一的错误仍然存在:
-- Looking for ICU libraries
-- ICU Found, building booster locale
GNU-TLS Gcrypt or OpenSSL librarys are not found, disabling AES encryption support
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:
PCRE_LIB
linked by target "booster" in directory /home/hoangtu/Programs/cppcms-0.99.7/booster
linked by target "booster-static" in directory /home/hoangtu/Programs/cppcms-0.99.7/booster
是助推器。未找到 Openssl 剧照。