一、问题描叙
自己误操作删除/lib64/libpcre.so.0.0.1,导致正则无法使用(如grep),error while loading shared libraries: libpcre.so.0: cannot open shared object file: No such file or directory。
二、解决问题
1.卸载pcre
rpm -e --nodeps pcre
2.下载pcre rpm包
wget http://mirrors.163.com/centos/6/os/x86_64/Packages/pcre-7.8-7.el6.x86_64.rpm
3.安装pcre
rpm -ivh pcre-7.8-7.el6.x86_64.rpm
http:/mirrors.163.com/centos/6/os/x86_64/0
,如需转载请自行联系原作者