LinuxQuestions.org
Help answer threads with 0 replies.
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 10-25-2012, 08:23 PM   #1
ust
Senior Member
 
Registered: Mar 2003
Location: fasdf
Distribution: Debian / Suse /RHEL
Posts: 1,130

Rep: Reputation: 30
can not boot to server after change sth


I just added the following line to /root/.bashrc and reboot the server

export LD_ASSUME_KERNEL=2.4.1

Now , I can not run all commond on it , eg . df , it pops the following error, can advise how to fix it


# df
df: error while loading shared libraries: libc.so.6: cannot open shared object file: No such file or directory


Thanks
 
Old 10-25-2012, 09:13 PM   #2
ust
Senior Member
 
Registered: Mar 2003
Location: fasdf
Distribution: Debian / Suse /RHEL
Posts: 1,130

Original Poster
Rep: Reputation: 30
I use Redhat 5 , I have a general user a/c , but this can not update /root/.bashrc , can advise what can I do ?

thanks
 
Old 10-25-2012, 09:29 PM   #3
rosehosting.com
Member
 
Registered: Jun 2012
Location: Missouri, USA
Posts: 222

Rep: Reputation: 62
Could you execute the following commands as root user and provide us with the output?

uname -a
file /lib/libc.so.6
or
file /lib64/libc.so.6
 
Old 10-25-2012, 09:40 PM   #4
ust
Senior Member
 
Registered: Mar 2003
Location: fasdf
Distribution: Debian / Suse /RHEL
Posts: 1,130

Original Poster
Rep: Reputation: 30
#uname -a
uname: error while loading shared libraries: libc.so.6: cannot open shared object file: No such file or directory


#file /lib/libc.so.6
file: error while loading shared libraries: libc.so.6: cannot open shared object file: No such file or directory
 
Old 10-26-2012, 01:27 PM   #5
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 18,806

Rep: Reputation: 4179Reputation: 4179Reputation: 4179Reputation: 4179Reputation: 4179Reputation: 4179Reputation: 4179Reputation: 4179Reputation: 4179Reputation: 4179Reputation: 4179
Quote:
Originally Posted by ust View Post
#uname -a
uname: error while loading shared libraries: libc.so.6: cannot open shared object file: No such file or directory

#file /lib/libc.so.6
file: error while loading shared libraries: libc.so.6: cannot open shared object file: No such file or directory
Probably related to this question, where you haven't followed up:
http://www.linuxquestions.org/questi...am-4175433998/

We will AGAIN tell you to contact Red Hat support...you continue to not even acknowledge that you have received that advice, but it's relevant. RHEL is NOT free, and using it without paying is a bad idea for a production server. Use CentOS instead...and even at that, RHEL5 is old...the latest is 6.x, so if this is a new server, why haven't you loaded the most current OS?

Trying to cobble together things as important as libc is NOT A GOOD IDEA. Boot from CD/DVD into rescue mode, mount the disk manually, and remove the changes you made. If you can't, restore your system from backups.

Last edited by TB0ne; 10-26-2012 at 01:31 PM.
 
  


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
Trying to change my runlevel on Kubuntu 8.04 - need to boot without an X-server. Krolros Linux - Newbie 5 03-31-2009 05:32 AM
sth abt firewall and packages swayme Slackware 1 03-31-2009 04:17 AM
G'Day from Adelaide Sth Oz quixote8 LinuxQuestions.org Member Intro 1 11-25-2008 11:43 PM
iptables help with sth plz alaios Linux - Networking 3 09-18-2005 11:44 AM
Had to change out MB on RH 9 Server and it won't boot into X ikw38 Red Hat 5 09-19-2003 12:10 PM


All times are GMT -5. The time now is 04:29 AM.

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