[SUMMARY] Re: missing libc.so.1

From: Piotr Wolak <piotr_wolak_at_yahoo.com>
Date: Wed Dec 05 2001 - 18:14:13 EST

Many thanks to all of you: Ken Germann, Rodrigo Gesswein, Rob McCauley,
Simon Convey, The great Spirit, Rob Lyle, Henrik Mortensen, Kevin
Stafford, Jay Lessert, Rick Kelly, Brett Lymn, Mark Bergman.

Almost everything seems to depend on libc library.


1. Boot the server from CD and then copy necessary libraries from CD.

2. Check and set the LD_LIBARY_PATH environment variable.

3. Use the /usr/sbin/static/cp - statically linked cp command.

4. Execute the following command : /usr/5bin/cat
/usr/lib/libc.so.1.backup > /usr/lib/libc.so.1
	I used this one to solve my problem. It worked great!
5. Boot from the network, mount /usr, and fix it.

6. Ship the box back home and fix it.  :-) 

7. Two tips :

        # catting a file with no cat:
        $ (while read foo; do echo "$foo"; done;) < /etc/vfstab

        # copying a file with no cp:
        $ (while read foo; do echo "$foo"; done;) < /etc/vfstab >

8. Another two: 
        while ( read var )
                echo $var > /lib/libc.so.1
        done < /usr/lib/libc.so.1

        tar cf - /usr/lib/libc.so.1 | ( cd /lib ; tar xf - )

Thanks a lot and Have a great night !


Original message:
> Admins,
> I have a problem with my SS20 running SunOS 4.1. Someone (I think)
> removed the /usr/lib/libc.so.1 library from the system and I'm unable to
> run any command.
> I have got an error:
> ld.so: libc.so.1: not found
> Unfortunately this machine is located in another part of the World, so I
> do not have direct access to it. However, I have a person who could
> "remotely" run my commands.
> Is there any chance to copy this library (I have a backup copy in
> /usr/lib on that system) using shell commands like echo ???
> I would be very appreciated for any suggestions.
Received on Wed Dec 5 23:14:13 2001

This archive was generated by hypermail 2.1.8 : Wed Mar 23 2016 - 16:32:37 EDT