How to restore the /lib/libc.so.6 link or ....???
Good Morning,
I've been working with out servers for the past several years. We have a mix of OS. Fedora, Ubuntu, RHEL, etc. I've accidentally trashed the libc.so.6 link and now nothing but shell commands work. I tried to echo "/lib/libc-2.10.2.so into the /etc/sestatus.conf file, but that didn't have any affect. Does anyone know where the search path is maintained besides PATH so I can try to point the apps to the /lib/libc-2.10.2.so file? I have a bunch of SVN repos on this server and right now, no one has access. I'm desperate. thank-you in advance, Respectfully, sharkman. |
You can try setting LD_LIBPATH.
You say you've destroyed the "link". Does "ln -s" not work to recreate the link? |
On the off-chance that it may help:
On my system, `ldconfig` is a static-compiled executable. Maybe yours is too? If so, maybe you could use it to restore (update) the library links? Code:
ldconfig -v Oh, P.S. - the search path for libraries is controlled by /etc/ld.so.conf usually. |
Thank-you. The ldconfig worked through the install disk in rescue mode. The only thing I'm confused about now is I installed Trac in /opt and now it's gone. I did run "upgrade" from the install disk (ISO) image 1, but I didn't think that would blow away anthing in /opt. This is a RAID server and I doubt that Trac is on the other drive, but who knows. This has been a very strange problem.
Thank-you again, Respectfully, Wes. |
Is there any way to restore the /lib/libc.so.6
Quote:
>> If this file is removed by "rm", the "ln" or "su" and some linux services die. Then I had to reload the file system for the board. >> I believe the "ln" or "su" or other linux commands are using the /lib/libc.so.6 >> Is there any other way to update the libc tricky without update the root file system? |
Please open a new thread for your question rather than appending to old threads. That way it has higher visibility.
What command did you type to do the link? What response did the command give? |
All times are GMT -5. The time now is 02:05 AM. |