在centos服务器(2.6.18-194.el5PAE#1)中使用yum命令时,会抛出“Segmentation fault”.
[root@server2 ~]# yum check-update
Loaded plugins: fastestmirror Loading
mirror speeds from cached hostfileSegmentation fault
[root@server2 ~]# yum installlve-devel cmake
Loaded plugins:
fastestmirror Loading mirror speeds
from cached hostfile Segmentation fault[root@server2 ~]# yum update
Loaded plugins: fastestmirror Loading
mirror speeds from cached hostfile
Segmentation fault
我怎么解决这个问题?
问题是从源代码升级zlib,这是一个影响所有RHEL / CentOS / CL安装的问题:
http://bugs.centos.org/view.php?id=4702&nbn=1
我删除了源zlib
/usr/local/lib/libz.so.1.2.5
并更改了链接
/usr/local/lib/libz.so ->
libz.so.1.2.5 lrwxrwxrwx 1 root root
13 Sep 24 2010
/usr/local/lib/libz.so.1 ->
libz.so.1.2.5
指向libz.so.1.2.3.这解决了这个问题.