gpt4 book ai didi

c++ - CPPCMS 构建库错误

转载 作者:太空狗 更新时间:2023-10-29 20:47:16 25 4
gpt4 key购买 nike

尽管我已经安装了 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 仍然找不到。

最佳答案

很好,

我在这里找到了答案:http://cppcms.sourceforge.net/wikipp/en/page/cppcms_1x_build_troubleshooting

sudo apt-get install build-essential libpcre3-dev libicu-dev libgcrypt11-dev zlib1g-dev cmake

关于c++ - CPPCMS 构建库错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/6083195/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com