CentOS5.5系统Yum提示Segmentation fault

遇到这个错误通常是因为安装了两个版本的libz(系统默认的是1.2.3)

可用命令查看

[root@dev1 lib]# ldconfig -v|grep libz
ldconfig: /etc/ld.so.conf.d/kernelcap-2.6.18-308.16.1.el5.conf:6: duplicate hwcap 0 nosegneg
ldconfig: Path `/usr/local/lib' given more than once
ldconfig: Path `/lib' given more than once
ldconfig: Path `/usr/lib' given more than once
ldconfig: Path `/usr/lib64' given more than once
        libz.so.1 -> libz.so.1.2.5
        libz.so.1 -> libz.so.1.2.3
        libz.so.1 -> libz.so.1.2.3
        libz.so.1 -> libz.so.1.2.3
        libz.so.1 -> libz.so.1.2.3

解决方法是把其中libz.so.1.2.5的链接改为libz.so.1.2.3

进入你的zlib1.2.5安装目录,我的环境上是/usr/local/lib,执行命令:

ln -sf libz.so.1.2.3 libz.so.1

ln -sf libz.so.1.2.3 libz.so

然后再用命令查看一下:

[root@dev1 lib]# ldconfig -v|grep libz
ldconfig: /etc/ld.so.conf.d/kernelcap-2.6.18-308.16.1.el5.conf:6: duplicate hwcap 0 nosegneg
ldconfig: Path `/usr/local/lib' given more than once
ldconfig: Path `/lib' given more than once
ldconfig: Path `/usr/lib' given more than once
ldconfig: Path `/usr/lib64' given more than once
ldconfig: Cannot stat /usr/local/lib/libz.so.1: No such file or directory
        libz.so.1 -> libz.so.1.2.5 (changed)
        libz.so.1 -> libz.so.1.2.3
        libz.so.1 -> libz.so.1.2.3
        libz.so.1 -> libz.so.1.2.3
        libz.so.1 -> libz.so.1.2.3

注意出现上面的粗体changed就修改好了。

你可能感兴趣的:(CentOS5.5系统Yum提示Segmentation fault)