Tag Archives: Segmentation fault

Install the software Yum to process the error segmentation fault [Solved]

yum installation software error Segmentation fault handling

 

When using yum to update software, it prompts.
Segmentation fault

Chinese error message: Segmentation fault

[root@CMS-BAK:/usr/local/lib]# yum install -y screen
Freeing read locks for locker 0x2f: 13195/140686785021696
Freeing read locks for locker 0x31: 13195/140686785021696
Freeing read locks for locker 0x32: 13195/140686785021696
Loaded plugins: fastestmirror, security
Loading mirror speeds from cached hostfile
Could not retrieve mirrorlist http://apt.sw.be/redhat/el6/en/mirrors-rpmforge error was
14: PYCURL ERROR 6 – “Couldn’t resolve host ‘apt.sw.be'”
* base: mirrors.aliyun.com
* extras: mirrors.aliyun.com
* updates: mirrors.aliyun.com
Segmentation fault

It is possible that zlib was manually compiled and installed, and /etc/ld.so.conf was modified to include /usr/local/lab

The system has two versions of zlib, use ldconfig -v|grep libz to see the two versions of zlib.

 

[root@CMS-BAK:/usr/local/lib]# ldconfig -v|grep libz
ldconfig: Can’t stat /usr/local/lab/libevent-2.0.21-stable/lib: No such file or directory
libz.so.1 -> libz.so.1.2.5
libz.so.1 -> libz.so.1.2.3
[root@CMS-BAK:/usr/local/lib]# find/-name ‘libz.so.1’
/lib64/libz.so.1
/usr/local/lib/libz.so.1
/usr/local_bak/lib/libz.so.1
/usr/local_source/zlib-1.2.5/lib/libz.so.1

So, comment out the zlib in /etc/ld.so.conf.
[root@CMS-BAK:/data/mysql_data]# cat /etc/ld.so.conf
include ld.so.conf.d/*.conf
#####ADD BY lx#####
/usr/local/BerkeleyDB-4.8.30/lib
/usr/local/lab/ltp-full-20140115/lib
/usr/local/mysql/lib
/usr/local/lab/openssl/lib
/usr/local/lab/libevent-2.0.21-stable/lib
/usr/local/so
/usr/local/lab
#/usr/local/lib

Execute ldconfig once

Execute yum clean all

yum install screen -y

Done!