How to recover after deleting the symbolic link libc.so.6?

前端 未结 8 2184
孤城傲影
孤城傲影 2020-12-24 13:12

In our server the symbolic link to libc.so.6 has been deleted. Now none of the binaries in the system work. To fix this, I tried:

/bin/ln -s /li         


        
8条回答
  •  醉酒成梦
    2020-12-24 13:17

    If you had done an ls command previously and know what the version of the libc is,

    ldconfig -l -v /lib64/libc-2.x.so
    

    where x is your version works. Note that it could be a lib64 or lib depending on your version.

    I just did this and it worked.

    In short, never delete the link. Bad idea.

提交回复
热议问题