误卸载openldap导致yum无法使用

卸载openldap相关的所有rpm包后,出现libldap-2.4.so.2: cannot open shared object file: No such file or directory,鼓捣半天,查找半天,借鉴http://m.blog.itpub.net/30089851/viewspace-2129021/ 中的方法轻松解决。

第一步

wget http://ftp.pbone.net/mirror/ftp.scientificlinux.org/linux/scientific/6.4/x86_64/updates/fastbugs/openldap-2.4.23-32.el6_4.1.x86_64.rpm

第二步

rpm -v --checksig ./openldap-2.4.23-32.el6_4.1.x86_64.rpm

第三步

rpm -ivh --force --nodeps openldap-2.4.23-32.el6_4.1.x86_64.rpm 

最后

yum

猜你喜欢

转载自blog.csdn.net/lj1404536198/article/details/79166200
今日推荐