CPPCMS与库构建错误

时间:2011-05-21 17:02:35

标签: c++ cppcms

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

1 个答案:

答案 0 :(得分:5)

大,

我在这里找到答案: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