LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
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 05-08-2009, 05:58 AM   #1
kk2202
LQ Newbie
 
Registered: Jan 2009
Posts: 24

Rep: Reputation: 15
How to recover corrupted glibc


I have RHEL5 box installed with gcc version 4.1.2. I want to install gcc version 3.4.2 on to that.

I was ablw to install gccV4.3.2, after removing many other packages and isntalling the older versions of the same packages.However, its not successful. I landed corrupting my glibc in the process.
I get the error for any command that i execute:
/lib/ld-linux.so.2: bad ELF interpreter: No such file or directory

How can I recover from this ?
 
Old 05-08-2009, 09:49 AM   #2
blacky_5251
Member
 
Registered: Oct 2004
Location: Adelaide Hills, South Australia
Distribution: RHEL 5&6 CentOS 5, 6 & 7
Posts: 572

Rep: Reputation: 56
Hi,

These steps aren't exact, but hopefully you can follow the lead provided....
1. Use your install media to boot the machine and enter rescue mode. Type "linux rescue" at the boot prompt.
2. Once booted, you can use yum with the --installroot= option to reinstall the glibc RPM from the install CD to your harddisk, which has been mounted by the rescue mode.

If you need more precise guidance, I could pull out my notes.
 
Old 05-08-2009, 11:04 AM   #3
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2016, Slack14.1 Deb Jessie, + 50+ other Linux OS, for test only.
Posts: 16,276

Rep: Reputation: 3153Reputation: 3153Reputation: 3153Reputation: 3153Reputation: 3153Reputation: 3153Reputation: 3153Reputation: 3153Reputation: 3153Reputation: 3153Reputation: 3153
For "yum install" gcc-3.4 , see your other thread
http://www.linuxquestions.org/questi...mpiler-724632/
.....

If rpm and other commands don't work because of corrupted
glibc, boot into the computer from a live cd, and unpack
glibc-2.5.x-x.x.rpm to / on your system with
rpm2cpio <package.rpm> | cpio -idmv
( you may have the correct package from an install DVD.)
.....

Last edited by knudfl; 05-09-2009 at 05:19 AM.
 
Old 05-14-2009, 02:59 AM   #4
kk2202
LQ Newbie
 
Registered: Jan 2009
Posts: 24

Original Poster
Rep: Reputation: 15
Thanks for your response. I had to recover this using the boot CD.
 
  


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
Unable to recover files in corrupted raid1 array trostr Linux - Server 0 05-03-2009 06:42 PM
Corrupted journal in a Linux LVM How to recover ccj4467 Linux - General 0 01-16-2009 01:10 PM
LXer: Linux: Recover Corrupted Partition From A Bad Superblock LXer Syndicated Linux News 0 08-22-2008 11:50 PM
Recover corrupted backups Jzarecta Linux - Security 1 06-26-2007 01:51 PM
possible to recover corrupted reiserfs partition???? hollywoodb Linux - Newbie 1 10-10-2003 06:44 PM


All times are GMT -5. The time now is 08:42 PM.

Main Menu
Advertisement
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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration