pnp4nagios 6.5 錯誤提示 No Unicode properties support

安裝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
完成
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章