Operating System - HP-UX
1748142 Members
3532 Online
108758 Solutions
New Discussion юеВ

Re: 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 12
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