Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
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!


  Search this Thread
Old 05-08-2009, 04:58 AM   #1
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/ bad ELF interpreter: No such file or directory

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

Rep: Reputation: 56

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, 10:04 AM   #3
LQ 5k Club
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2016 CentOS6.9 CentOS7.3 + 50+ other Linux OS, for test only.
Posts: 16,702

Rep: Reputation: 3291Reputation: 3291Reputation: 3291Reputation: 3291Reputation: 3291Reputation: 3291Reputation: 3291Reputation: 3291Reputation: 3291Reputation: 3291Reputation: 3291
For "yum install" gcc-3.4 , see your other thread

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 04:19 AM.
Old 05-14-2009, 01:59 AM   #4
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.


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

All times are GMT -5. The time now is 05:51 AM.

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