LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices

Reply
 
Search this Thread
Old 09-29-2005, 12:35 PM   #1
murder
LQ Newbie
 
Registered: Aug 2005
Posts: 29

Rep: Reputation: 15
managed to delete /lib/libc.so.6


i managed to replace the "/lib/libc.so.6" i have tried replacing the file with one from a diff. box but i still get this error "/bin/sh: error while loading shared libraries: /lib/libc.so.6: file too short" any suggestions? the box is running Fedora 4 and its 2000 miles away from me. i can still access it from Webmin & Ftp but no ssh
 
Old 09-29-2005, 12:45 PM   #2
Komakino
Senior Member
 
Registered: Feb 2004
Location: Somerset, England
Distribution: Slackware 10.2, Slackware 10.0, Ubuntu 9.10
Posts: 1,938

Rep: Reputation: 53
I guess you'll need to replace it with the exact same one from another FC4 distro.

But the question remains....WHY and HOW?!!!?! It never ceases to amaze me what people feel they have to fiddle with...
 
Old 09-29-2005, 12:47 PM   #3
murder
LQ Newbie
 
Registered: Aug 2005
Posts: 29

Original Poster
Rep: Reputation: 15
i replaced it from another fedora core 4. the reason it happend is i was tring to get mysqld to start and it was giving me a error regarding that file so i googled it and it said to update the file with a rpm so i did then nothing worked after that so i tried deleted it and replacing it with the one from the other box and still get the same error.
 
Old 09-29-2005, 01:47 PM   #4
freakyg
Member
 
Registered: Apr 2005
Distribution: LFS 5.0 and 6.1
Posts: 705

Rep: Reputation: 30
the reason it won't work is this............the glibc libraries are compiled against the particular version of kernel headers your system has.......

EXAMPLE............you just can't take a libc.so that was compiled against kernel 2.4.26 headers and use it in a box that is using 2.4.24 or 2.4.29 headers........you'll get oddball errors as well as Seg Faults!!...........
 
Old 09-30-2005, 12:43 AM   #5
tkedwards
Senior Member
 
Registered: Aug 2004
Location: Munich, Germany
Distribution: Opensuse 11.2
Posts: 1,549

Rep: Reputation: 51
You can easily fix this by doing a
Code:
rpm --freshen --allfiles glibc.xxx
Find the glibc rpm on your CDs or on one of the Fedora mirrors (make sure you get the one for Fedora4!

As for only having webmin and FTP access, that might be a bit of a problem - are you sure you can't restart the ssh daemon (using webmin) and have it work? Also how much of the file system can u access through FTP - if you can access the /etc directory you could drop a statically compiled ssh or telnet or rlogin daemon somewhere, create a script in /etc/init.d to start it and then use the service control thing in webmin to start it.
 
Old 09-30-2005, 02:30 PM   #6
murder
LQ Newbie
 
Registered: Aug 2005
Posts: 29

Original Poster
Rep: Reputation: 15
i tried all of that but no such luck i guess im just gonna have to re-image the system but thanks for all your help
 
  


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


Similar Threads
Thread Thread Starter Forum Replies Last Post
libc.so.6 not in /lib - how to fix? Battlefield Linux - General 1 03-25-2005 09:28 PM
Managed to delete Xfee86 on Mandrake Rohtsalu Linux - Software 1 09-16-2004 04:05 PM
I just delete the /lib folder :( Boogieman Linux - Software 8 07-13-2004 05:06 PM
xauth: /lib/i686/libc.so.6: version 'GLIBC_2.3.2' not found yigald Linux - Newbie 0 02-20-2004 11:52 PM
boot up hangs with init:error while loading /lib/libc.so.6 nates71 Linux - General 0 05-09-2001 01:40 PM


All times are GMT -5. The time now is 01:03 PM.

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