General
cancel
Showing results for 
Search instead for 
Did you mean: 

The "/usr/lib//usr/lib/libc.2" Library is Corrupted.

The "/usr/lib//usr/lib/libc.2" Library is Corrupted.

Hi there,

I have a problem with the "/usr/lib//usr/lib/libc.2" library, I have mistaken rename the specify library to other name and since that time I cannot use any command on the server, it's always return the following error message,

-----------------
/usr/lib/dld.sl: Can't open shared library: /usr/lib/libc.2
/usr/lib/dld.sl: No such file or directory
Abort(coredump)
-----------------

Anyway I've try to boot the server with single-user mode and mount the "/usr" back but it's still have the same error.

Could anyone ever facing problem like this, please help (it's urgent), what are the possible solutions.

Thanks
SKE
12 REPLIES
G. Vrijhoeven
Honored Contributor

Re: The "/usr/lib//usr/lib/libc.2" Library is Corrupted.

Hi,

You could try adjusting the LIB_PATH var.

HTH,

Gideon
Mark Greene_1
Honored Contributor

Re: The "/usr/lib//usr/lib/libc.2" Library is Corrupted.

You may have to boot your system from the system cd and then mount the /usr file system to be able to rename the file back to the correct name.

mark
the future will be a lot like now, only later
G. Vrijhoeven
Honored Contributor

Re: The "/usr/lib//usr/lib/libc.2" Library is Corrupted.

HI again,

I menth
SHLIB_PATH

HTH,

Gideon
Jean-Luc Oudart
Honored Contributor

Re: The "/usr/lib//usr/lib/libc.2" Library is Corrupted.

Well
if /usr/lib/libc.2 is rename most utilities won't be accessible.
Only those in /sbin

why not try
/sbin/cat > /usr/lib/libc.2

I don't know about changing permissions if this is required

Regards,
Jean-Luc
fiat lux
Jean-Luc Oudart
Honored Contributor

Re: The "/usr/lib//usr/lib/libc.2" Library is Corrupted.

Not sure that changing SHLIB_PATH will help you as these programs are defined with :
shared library dynamic path search:
SHLIB_PATH disabled second
embedded path disabled first Not Defined
shared library list:
dynamic /usr/lib/libc.2
So if SHLIB_PATH is disabled ...

Jean-Luc
fiat lux
Jean-Luc Oudart
Honored Contributor

Re: The "/usr/lib//usr/lib/libc.2" Library is Corrupted.

sorry miss this one:
/sbin/chmod +x /usr/lib/libc.2

see my 1st post

Regards,
Jean-Luc
fiat lux
Jean-Luc Oudart
Honored Contributor

Re: The "/usr/lib//usr/lib/libc.2" Library is Corrupted.

Is the renamed file on same fs ?
if so you could use /sbin/link

man 1M link
man link

Regards
Jean-Luc
fiat lux
Bruno Ganino
Honored Contributor

Re: The "/usr/lib//usr/lib/libc.2" Library is Corrupted.

Check the permission of share library libc.2 and set it correctly.
Bruno
Torino (Turin) +2H
Printaporn_1
Esteemed Contributor

Re: The "/usr/lib//usr/lib/libc.2" Library is Corrupted.

Hi,

you may need to boot from support CD doing chroot then mount /usr and rename file back.

HTH.
enjoy any little thing in my life
Jean-Luc Oudart
Honored Contributor

Re: The "/usr/lib//usr/lib/libc.2" Library is Corrupted.

Hi Sorayuth

Any update ? did you solve your pb ?

Regards,
Jean-Luc
fiat lux

Re: The "/usr/lib//usr/lib/libc.2" Library is Corrupted.

Hi All,

Many feedback are useful for other cases, I have the easiest way to correct this problem,

1. Boot into single-user mode
2. Mount "/usr" to other mount point
3. Rename the file's name back
4. Unmount the temporary mount point
5. Mount "/usr"
6. Test by using the utility commands, and it's fine
7. Reboot the server to multi-user mode

Again, thanks for all feedback, it's always useful.

SK.
SKE
ranganath ramachandra
Esteemed Contributor

Re: The "/usr/lib//usr/lib/libc.2" Library is Corrupted.

i think the easiest way to correct this would be to use /sbin/mv to rename the file:

/sbin/mv -f /usr/lib/libc.renamed /usr/lib/libc.2

what problem did you face with this method ?