zabbix安装报错解决

1、缺少libevent库

configure: error: Unable to use libevent (libevent check failed)

解决办法:

 wget https://github.com/libevent/libevent/releases/download/release-2.1.12-stable/libevent-2.1.12-stable.tar.gz
tar xf libevent-2.1.12-stable.tar.gz 
cd libevent-2.1.12-stable
./configure --prefix=/usr/local/libevent
make && make install

 

2、“libpcre.so.1 文件找不到” 

报错信息:error while loading shared libraries: libpcre.so.1: cannot open shared object file: No such file or directory

解决方法:

(1)先查找这个文件:

 find / -name "libpcre.so.1"

(2)将查询到的此目录放到/etc/ld.so.conf 下即可:

 echo "/usr/local/lib" >>/etc/ld.so.conf

 ldconfig  (让修改生效)

3、缺少pcre库

报错信息:configure: error: Unable to use libpcre (libpcre check failed)

(1)使用 find / -name libpcre* 你也装了的时候

yum -y install pcre*

(2)使用源码编译安装

PCRE下载地址:PCRE - Browse /pcre/8.45 at SourceForge.net

tar -xvf pcre-8.44.tar.gz -C /usr/local/

 cd /usr/local/pcre-8.44/

./configure --prefix=/usr/local/pcre

make && make install

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值