LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   can not boot to server after change sth (https://www.linuxquestions.org/questions/linux-newbie-8/can-not-boot-to-server-after-change-sth-4175434114/)

ust 10-25-2012 08:23 PM

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

ust 10-25-2012 09:13 PM

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

rosehosting.com 10-25-2012 09:29 PM

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

ust 10-25-2012 09:40 PM

#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

TB0ne 10-26-2012 01:27 PM

Quote:

Originally Posted by ust (Post 4815116)
#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.


All times are GMT -5. The time now is 11:30 PM.