Operating System - HP-UX
1833983 Members
2075 Online
110063 Solutions
New Discussion

Re: crt0: ERROR couldn't open /usr/lib/dld.sl

 
SOLVED
Go to solution
TMcB
Super Advisor

crt0: ERROR couldn't open /usr/lib/dld.sl

I mistakely renamed the dld.sl file in the /usr/lib directory to dld2.sl. The server wouldnt reboot - so I had to start in single user mode.

I have tried to rename it back from the renamed file to the original file name, but it gives me the error:

crt0: ERROR couldn't open /usr/lib/dld.sl errno:000000002

How can I go about changing /usr/lib/dld.sl2 to /usr/lib/dld.sl. - i get the same error when trying to use cp or rename??

Thanks
3 REPLIES 3
Matti_Kurkela
Honored Contributor
Solution

Re: crt0: ERROR couldn't open /usr/lib/dld.sl

By changing the filename, you broke the dynamic linker. It is required to load any command that requires shared libraries - in other words, almost everything.

Only the statically linked commands will work until you fix this. These commands are found in /sbin. So, use /sbin/mv to rename the file instead of the usual /usr/bin/mv.

/sbin/mv /usr/lib/dld.sl2 /usr/lib/dld.sl

MK
MK
TMcB
Super Advisor

Re: crt0: ERROR couldn't open /usr/lib/dld.sl

Hi Matti

I was able to get it sorted just before you posted your reply by using the full pathname for mv (as you said).

Initially it didnt work as I was sitting in /usr/lib; but by cd'ing to / folder - it worked OK.

Thanks for replying
Dennis Handly
Acclaimed Contributor

Re: crt0: ERROR couldn't open /usr/lib/dld.sl