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