LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 10-19-2005, 12:20 PM   #1
sengen
LQ Newbie
 
Registered: Oct 2005
Posts: 4

Rep: Reputation: 0
Need help with Linux System!


Hi,

I was trying to install new software into my redhat 7.2 and accidently
linked the bad library for the /lib/i686/libc.so.6.
Now, I cannot run any commands such rm, ls, ll, vi, ln,
etc...Here is the error when I try to issue a command
such as rm:
rm: /lib/ld-linux.so.2: version `GLIBC_PRIVATE' not
found (required by /lib/i686/libc.so.6)

The problem is /lib/i686/libc.so.6 is linked to
/lib/i686/libc-2.3.2.so which is not correct. I would
like to re-link /lib/i686/libc.so.6 back to its
original (/lib/i686/libc-2.2.4.so). How can I do this
since I cannot run a command such as rm and ln?

I have try using ldconfig, but no luck. Any idea?

Thanks,
Sengen
 
Old 10-19-2005, 12:28 PM   #2
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 79
You could try setting LD_LIBRARY_PATH to a location containing only the correct entries if you can. If not, then I suggest you restart the system with a rescue CD and fix the problem from there.
 
Old 10-19-2005, 01:18 PM   #3
sengen
LQ Newbie
 
Registered: Oct 2005
Posts: 4

Original Poster
Rep: Reputation: 0
Would please be more specific on how to set LD_LIBRARY_PATH
to a location containing only the correct entries?
Here is my current setup:

/lib/ld-linux.so.2 -> /lib/ld-2.2.4.so
/lib/i686/libc.so.6 -> /lib/i686/libc-2.3.2.so ( Bad link which cause the problem)

I would like remove /lib/i686/libc-2.3.2.so and re-link /lib/i686/libc.so.6 to
/lib/i686/libc-2.2.4.so

Since the regular commands rm, ln are not working, how can I do this using
LD_LIBRARY_PATH exactly? Sorry, I'm still new to Linux.

Thanks,
Sengen
 
Old 10-20-2005, 12:24 PM   #4
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 79
If they are in the same directory then it won't really work. You would need to issue:
export LD_LIBRARY_PATH="/path/to/lib"

It would probably be easier just to reboot and use a rescue cd.
 
Old 10-20-2005, 01:14 PM   #5
XavierP
Moderator
 
Registered: Nov 2002
Location: Kent, England
Distribution: Debian Testing
Posts: 19,192
Blog Entries: 4

Rep: Reputation: 475Reputation: 475Reputation: 475Reputation: 475Reputation: 475
RedHat 7.2???? Can you still get security updates for that?
 
Old 10-21-2005, 12:25 PM   #6
sengen
LQ Newbie
 
Registered: Oct 2005
Posts: 4

Original Poster
Rep: Reputation: 0
Unfortunately, my copies of the red 7.2 CDs set got scatched and doesn't boot up. My system is currently down...any suggestion where can I get these CDs set? I don't mind paying for them.

My friend has the redhat 9 CDs...will this work? Too many important stuffs in my system, I don't want to risk anything. Please help!! Thanks in advance.

-Sengen
 
Old 10-21-2005, 12:58 PM   #7
Bonzodog
Member
 
Registered: Apr 2005
Location: UK
Distribution: Arch Linux 64
Posts: 76

Rep: Reputation: 16
do you have your /home dir on a seperate partition?
If you do, you could install a more recent distro and just tell it not to format the /home partition.
You will need to go through your home dir though, and any other users on /home, removing out-dated config files.
There is also a chance that something like FC4 will pick up on the fact that it's a redhat distro, and do it as an upgrade, not a fresh install, which means that you get to keep all the data in your /home dir.
Seriously though, you need to upgrade quite severely. RH 7.2 uses a very old set-up , and you will find things have changed quite a lot.
But it also begs one important question:
What hardware are you using?
If it's an old Pentium one for example, it might struggle to run the newer distros as the graphical environments can be memory and CPU cycle hungry.
Hope this guided you in the right direction.
 
Old 10-21-2005, 10:20 PM   #8
sengen
LQ Newbie
 
Registered: Oct 2005
Posts: 4

Original Poster
Rep: Reputation: 0
I managed to get my hand on the redhat 7.2 CDs set. Run the
linux rescue and fixed my error. Everything is back to normal now...
lession learn, never play around with the lib libraries unless you know exactly
what you're doing. Thanks for all your help...

-Sengen
 
Old 10-22-2005, 03:08 AM   #9
Bonzodog
Member
 
Registered: Apr 2005
Location: UK
Distribution: Arch Linux 64
Posts: 76

Rep: Reputation: 16
I still think you ought to think about about doing a serious upgrade. Back up your vital data and get yourself a more recent distro. RH 7.2 is from 1999!
 
  


Reply



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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
My Linux system is catching up with my Xp system JBull General 16 07-18-2005 06:49 PM
Connecting remotely to a linux system from a windows system Die Woud Linux - Networking 3 04-23-2005 02:38 PM
Why Linux is best Operating System for Learning/Doing System Programming ? ubaid_t General 6 03-21-2004 02:10 PM
Can i see my linux system from another System on my network gnanaswaroop Linux - Networking 4 11-25-2003 12:13 PM
Minimal Linux system from current system tgardner Linux - Software 1 04-07-2003 08:37 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 06:03 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
Open Source Consulting | Domain Registration