Wednesday, August 11, 2010

/lib accidently removed in linux

Question:-


accidently removed /lib/libc.so.6 running Red Hat 5 Enterprise edition.
I think this /lib/libc.so.6 was a symbolic link to /usr/lib/libc.so

I am unable to execute any of the commands
[root@netappsim lib]# ls -ltr libc.so.6
ls: error while loading shared libraries: libc.so.6: cannot open shared object file: No such file or directory

Please help me as how to revert the sym link /lib/libc.so.6


Solution:-

/lib/ld-linux.so.2 --library-path /lib /bin/ln -s /lib/libc-2.5.so /lib/libc.so.6

information source

No comments:

Post a Comment