PCRE2-10.00 和 xymon

PCRE2-10.00 和 xymon

当我configuremake install PCRE2-10.00并去xymon-4.3.18配置我得到以下信息:

Checking for PCRE ...
test-pcre.c:1:18: fatal error: pcre.h: No such file or directory
compilation terminated.
make: *** [test-compile] Error 1
ERROR: Cannot compile using PCRE library.
gcc: error: test-pcre.o: No such file or directory
make: *** [test-link] Error 1
ERROR: Cannot link with PCRE library.
Missing PCRE include- or library-files. These are REQUIRED for xymond
PCRE can be found at http://www.pcre.org/
If you have PCRE installed, use the "--pcreinclude DIR" and "--pcrelib DIR"
options to configure to specify where they are.

不知道该怎么办。我尝试了很多方法,但没有成功。有人能帮助我或给我一些建议吗?

答案1

您需要安装 PCRE 开发文件包:

sudo apt-get install libpcre3-dev

如果构建配置脚本仍然找不到它(我发现不太可能,因为头文件放在标准位置),请使用:

./configure --pcreinclude /usr/include

相关内容