[SUMMARY] Re: missing libc.so.1

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

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.

Solutions:

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 >
/etc/vfstab.bak

8. Another two: 
	*
        while ( read var )
        do
                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 !

Piotr

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.
>
_______________________________________________
sunmanagers mailing list
sunmanagers@sunmanagers.org
http://www.sunmanagers.org/mailman/listinfo/sunmanagers
Received on Fri Dec 7 10:11:43 2001

This archive was generated by hypermail 2.1.8 : Thu Mar 03 2016 - 06:42:30 EST