Operating System - HP-UX
1832609 Members
2430 Online
110043 Solutions
New Discussion

accidental move of libc.2

 
SOLVED
Go to solution
Jack Howland
Occasional Contributor

accidental move of libc.2

Running 11.11 version 1 I accidently moved my /usr/lib/libc.2 library. I can't run any commands now and only have one shell open. Any suggestions?

/usr/lib/dld.sl: Can't open shared library: /usr/lib/libc.2
/usr/lib/dld.sl: No such file or directory
Abort(coredump)
3 REPLIES 3
A. Clay Stephenson
Acclaimed Contributor
Solution

Re: accidental move of libc.2

Step 1. Use /sbin/ls and /sbin/mv to find and move your library back. The commands in /sbin are statically linked and don't need any shared libraries to function.

Step 2. Get a baseball bat and whack yourself 3 times on the head so that you don't do this again.
If it ain't broke, I can fix that.
James R. Ferguson
Acclaimed Contributor

Re: accidental move of libc.2

Hi Jack:

"Moved" or "RE-moved"?

Boot into single user mode and either rename ('mv') the binary or copy it onto your server.

Regards!

...JRF...
Jack Howland
Occasional Contributor

Re: accidental move of libc.2

Duplicate thread. Sorry.