安装pnp4nagios后,调试时出现了,“No Unicode properties support“的错误提示,看了官方网站上的提示,解决方法如下:
下载
wget ftp://ftp.redhat.com/pub/redhat/linux/enterprise/5Server/en/os/SRPMS/pcre-6.6-2.el5_1.7.src.rpm
安装
rpm -ivh pcre-6.6-2.el5_1.7.src.rpm
(warning 一堆,不用管他)
修改配置文件。
vi /usr/src/redhat/SPECS/pcre.spec
修改
%configure –enable-utf8
为
%configure –enable-utf8 –enable-unicode-properties
安装rpm-build
yum install rpm-build
重新编译
rpmbuild -ba /usr/src/redhat/SPECS/pcre.spec
安装:
rpm -Uvh /usr/src/redhat/RPMS/i386/pcre-6.6-2.7.XX.rpm
检测:
检测:
# pcretest -C
PCRE version 6.6 06-Feb-2006
Compiled with
UTF-8 support
Unicode properties support
Newline character is LF
Internal link size = 2
POSIX malloc threshold = 10
Default match limit = 10000000
Default recursion depth limit = 10000000
Match recursion uses stack
Compiled with
UTF-8 support
Unicode properties support
Newline character is LF
Internal link size = 2
POSIX malloc threshold = 10
Default match limit = 10000000
Default recursion depth limit = 10000000
Match recursion uses stack
完成