基于Centos 5.4 
 

安装pnp4nagios后,调试时出现了,“No Unicode properties support“的错误提示,看了官方网站上的提示,解决方法如下:
 

1、安装rpm -ivh pcre-6.6-2.el5_1.7.src.rpm

2、修改配置文件。
      #  vi /usr/src/redhat/SPECS/pcre.spec
     修改 %configure –enable-utf8
   为  %configure –enable-utf8 –enable-unicode-properties

3、重新编译
     # rpmbuild -ba /usr/src/redhat/SPECS/pcre.spec
     #rpm -Uvh /usr/src/redhat/RPMS/i386/pcre-6.6-2.7.XX.rpm

4、检测:
     # 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