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
完成
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值