Error while loading shared libraries: libcap.so.1: cannot open shared object file
背景:而我的情况是因为强行卸载了rpm -e libcap-devel-1.10-26 --allmatches --nodeps 后,
导致:Error while loading shared libraries: libcap.so.1: cannot open shared object file 。
[root@test http_pcap_codes]# rpm -qa|grep libcap
libcap-1.10-26
libcap-devel-1.10-26
libcap-1.10-26
libcap-devel-1.10-26
发现有两个一样的包,我就强制卸载rpm包遭遇error: specifies multiple packages,
rpm -e libcap-devel-1.10-26
error: "libcap-devel-1.10-26" specifies multiple packages,后强制采用了:
rpm -e libcap-1.10-26 --allmatches --nodeps 卸载后,root sudo的时候,登录提示:
Error while loading shared libraries: libcap.so.1: cannot open shared object file !
还好及时发现,后又安上了,一查原来还真有这个libcap.so.1,如下:
[root@test dbus-1.8.0]# rpm -ql libcap-1.10-26|grep libcap.so.1
/lib64/libcap.so.1
/lib64/libcap.so.1.10
/lib/libcap.so.1
/lib/libcap.so.1.10
也就是说明,这个Linux的sudo会用这个了,了解。
——————————————————
安装了CentOS6.4,发现里面有很多默认安装的软件都不需要,比如mysql,apache,php等等,用rpm -e xxxx卸载,发现不好用,man rpm看了下,有个强制卸载的选项:
–allmatches
Remove all versions of the package which match PACKAGE_NAME. Normally an error is issued if PACKAGE_NAME matches
multiple packages.
rpm -e --allmatches --nodeps mysql-5.0.77-3.el5
warning: /etc/my.cnf saved as /etc/my.cnf.rpmsave
ok,系统自带的旧版本MySQL卸载完成。
摘自:http://blog.163.com/chenyao_2000/blog/static/128010930201110181464242/
实践如下:
[root@localhost htdocs]# rpm -e --allmatches --nodeps mysql-5.0.95-5.el5_9
warning: /etc/my.cnf saved as /etc/my.cnf.rpmsave
导致:Error while loading shared libraries: libcap.so.1: cannot open shared object file 。
[root@test http_pcap_codes]# rpm -qa|grep libcap
libcap-1.10-26
libcap-devel-1.10-26
libcap-1.10-26
libcap-devel-1.10-26
发现有两个一样的包,我就强制卸载rpm包遭遇error: specifies multiple packages,
rpm -e libcap-devel-1.10-26
error: "libcap-devel-1.10-26" specifies multiple packages,后强制采用了:
rpm -e libcap-1.10-26 --allmatches --nodeps 卸载后,root sudo的时候,登录提示:
Error while loading shared libraries: libcap.so.1: cannot open shared object file !
还好及时发现,后又安上了,一查原来还真有这个libcap.so.1,如下:
[root@test dbus-1.8.0]# rpm -ql libcap-1.10-26|grep libcap.so.1
/lib64/libcap.so.1
/lib64/libcap.so.1.10
/lib/libcap.so.1
/lib/libcap.so.1.10
也就是说明,这个Linux的sudo会用这个了,了解。
——————————————————
安装了CentOS6.4,发现里面有很多默认安装的软件都不需要,比如mysql,apache,php等等,用rpm -e xxxx卸载,发现不好用,man rpm看了下,有个强制卸载的选项:
–allmatches
Remove all versions of the package which match PACKAGE_NAME. Normally an error is issued if PACKAGE_NAME matches
multiple packages.
rpm -e --allmatches --nodeps mysql-5.0.77-3.el5
warning: /etc/my.cnf saved as /etc/my.cnf.rpmsave
ok,系统自带的旧版本MySQL卸载完成。
摘自:http://blog.163.com/chenyao_2000/blog/static/128010930201110181464242/
实践如下:
[root@localhost htdocs]# rpm -e --allmatches --nodeps mysql-5.0.95-5.el5_9
warning: /etc/my.cnf saved as /etc/my.cnf.rpmsave
作者:jackxiang@向东博客 专注WEB应用 构架之美 --- 构架之美,在于尽态极妍 | 应用之美,在于药到病除
地址:http://jackxiang.com/post/6976/
版权所有。转载时必须以链接形式注明作者和原始出处及本声明!
最后编辑: jackxiang 编辑于2014-12-30 17:40
评论列表