libc.so.6: cannot open shared object file报错处理

现象:

/bin/ls: error while loading shared libraries: libc.so.6: cannot open shared

报错原因:

将/lib64/libc.so.6 移走或者更换或者重命名

解决方法:

LD_PRELOAD=/lib64/libc-2.12.so rm -f libc.so.6
LD_PRELOAD=/lib64/libc-2.12.so ln -s /lib64/libc-2.12.so /lib64/libc.so.6

转载于:https://www.cnblogs.com/stone1989/p/8259352.html

你可能感兴趣的:(libc.so.6: cannot open shared object file报错处理)