Tuesday, September 2, 2014

Yum Segmentation Fault

I have a server that, every now and then, spits out a "segmentation fault" error when trying to run yum. "yum clean" and the like don't fix it. The problem seems to crop up when a user installs new libraries on the server via source rather than via yum. A library link gets changed as a result and yum falls apart.

A few forums had posts about this issue but it took some effort to dig through to the ones that offered solutions. To save myself time, I'll put my steps here.

Resolution (this is a CentOS 6, 64bit server)
rpm -q zlib                   # see what version of libz is installed
cd /lib64                      # change to the library directory
rm libz.so.1 # remove existing link to the incorrect version, libz.1.2.8
ln -s libz.1.2.3 libz.so.1 # create link to the correct version, libz.1.2.3

No comments:

Post a Comment