centos 编译安装pcre软件
http://jingyan.baidu.com/album/f7ff0bfc6bc0472e26bb13bf.html?picindex=3
查看有无pcre安装 #rpm -qa | grep pcre pcre-8.32-15.el7.x86_64
删除 rpm -e --nodeps pcre
之后,运行部分命令时提示: tar: error while loading shared libraries: libpcre.so.1: cannot open shared object file: No such file or directory 之前检查时,实际有此包 [root@localhost lnmp]# rpm -ql pcre /usr/lib64/libpcre.so.1 /usr/lib64/libpcre.so.1.2.0 /usr/lib64/libpcre16.so.0 /usr/lib64/libpcre16.so.0.2.0 /usr/lib64/libpcre32.so.0 /usr/lib64/libpcre32.so.0.0.0 /usr/lib64/libpcrecpp.so.0 /usr/lib64/libpcrecpp.so.0.0.0 /usr/lib64/libpcreposix.so.0 /usr/lib64/libpcreposix.so.0.0.1 /usr/share/doc/pcre-8.32 /usr/share/doc/pcre-8.32/AUTHORS /usr/share/doc/pcre-8.32/COPYING /usr/share/doc/pcre-8.32/ChangeLog /usr/share/doc/pcre-8.32/LICENCE /usr/share/doc/pcre-8.32/NEWS /usr/share/doc/pcre-8.32/README
64位系统,链接 ln -s /usr/local/lib/libpcre.so.1 /lib64/