LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices

Reply
 
LinkBack Search this Thread
Old 10-27-2010, 12:50 PM   #1
sharkman
LQ Newbie
 
Registered: Apr 2009
Location: San Diego
Posts: 2

Rep: Reputation: 0
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.
 
Old 10-27-2010, 12:59 PM   #2
MensaWater
Guru
 
Registered: May 2005
Location: Atlanta Georgia USA
Distribution: Redhat (RHEL), CentOS, Fedora, Debian, FreeBSD, HP-UX, Solaris, SCO
Posts: 5,770
Blog Entries: 4

Rep: Reputation: 697Reputation: 697Reputation: 697Reputation: 697Reputation: 697Reputation: 697
You can try setting LD_LIBPATH.

You say you've destroyed the "link". Does "ln -s" not work to recreate the link?
 
1 members found this post helpful.
Old 10-27-2010, 01:04 PM   #3
GrapefruiTgirl
Guru
 
Registered: Dec 2006
Location: underground
Distribution: Slackware64
Posts: 7,594

Rep: Reputation: 542Reputation: 542Reputation: 542Reputation: 542Reputation: 542Reputation: 542
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
If not, maybe I've misunderstood the problem.

Oh, P.S. - the search path for libraries is controlled by /etc/ld.so.conf usually.
 
Old 10-27-2010, 04:01 PM   #4
sharkman
LQ Newbie
 
Registered: Apr 2009
Location: San Diego
Posts: 2

Original Poster
Rep: Reputation: 0
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.
 
Old 12-28-2011, 04:37 AM   #5
dinhnl
LQ Newbie
 
Registered: Dec 2011
Posts: 1

Rep: Reputation: Disabled
Is there any way to restore the /lib/libc.so.6

Quote:
Originally Posted by MensaWater View Post
You can try setting LD_LIBPATH.

You say you've destroyed the "link". Does "ln -s" not work to recreate the link?
>> Hi, i am Dinh. I was updating the eglibc to my board to support valgrind on my board. I copied the libc-2.13.so to /lib and used "ln -s" to change the link of libc.so.6 from libc-2.3.5.so to the libc-2.13.so but the "ln" did not work.
>> 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?

Last edited by dinhnl; 12-28-2011 at 04:38 AM.
 
Old 01-03-2012, 12:19 PM   #6
MensaWater
Guru
 
Registered: May 2005
Location: Atlanta Georgia USA
Distribution: Redhat (RHEL), CentOS, Fedora, Debian, FreeBSD, HP-UX, Solaris, SCO
Posts: 5,770
Blog Entries: 4

Rep: Reputation: 697Reputation: 697Reputation: 697Reputation: 697Reputation: 697Reputation: 697
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?
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
/lib/libc.so.6 accidently removed raghupv30 Linux - Software 5 04-07-2014 09:27 PM
/lib/libc.so.6: version GLIBC_2.7 not found mark_l Linux - Software 4 03-04-2013 12:02 AM
/lib/libc.so.6: version 'GLIBC_2.4' not found blviper Linux - Software 2 05-22-2010 10:29 AM
managed to delete /lib/libc.so.6 murder Linux - Newbie 5 09-30-2005 02:30 PM
libc.so.6 not in /lib - how to fix? Battlefield Linux - General 1 03-25-2005 09:28 PM


All times are GMT -5. The time now is 06:45 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration