corrupt /etc/ld.so.cache

corrupt /etc/ld.so.cache

Post by Reinier Moster » Fri, 24 Apr 1998 04:00:00



Hi all,

I've got a Linux box (RH 4.2 standard (nothing newer installed)) giving an
error on bootup.  The error says something about a "corrupt
/etc/ld.so.cache", and then the machine hangs.

I've tried booting with a rescue disk (the original RH4.2 boot disk),
mounting the disk,  and deleting the file, hoping that this would fix it,
but no luck.  I've also tried running ldconfig, but this places the
/etc/ld.so.cache in /etc, and not /mnt/etc.  Can I just copy the file over?
 It feels to me that this file would not be correct anyway.  What is the
correct way of fixing this problem?  

Thanx for any help
Reinier Mostert

 
 
 

corrupt /etc/ld.so.cache

Post by Jim Jaworsk » Fri, 24 Apr 1998 04:00:00



> Date: 23 APR 1998 15:15:01 GMT

> Newgroups: comp.os.linux.setup
> Subject: corrupt /etc/ld.so.cache
> Hi all,

> I've got a Linux box (RH 4.2 standard (nothing newer installed)) giving an
> error on bootup.  The error says something about a "corrupt
> /etc/ld.so.cache", and then the machine hangs.

> I've tried booting with a rescue disk (the original RH4.2 boot disk),
> mounting the disk,  and deleting the file, hoping that this would fix it,
> but no luck.  I've also tried running ldconfig, but this places the
> /etc/ld.so.cache in /etc, and not /mnt/etc.  Can I just copy the file over?
>  It feels to me that this file would not be correct anyway.  What is the
> correct way of fixing this problem?  

        Use your emergency boot diskette and install the newer ld.so-1.95
which is available from ftp://tsx-11.mit.edu/pub/linux/packages/GCC/  
Upgrading fixed a few bugs for me, including the error:

        "ldconfig: warning: Can't unlink /usr/X11R6/lib/ (Operation not
permitted)"

+-----------------------------+-----------------------------------+
|Winnipeg MB Canada           | Send e-mail with Subject:         |
|Team OS/2                    | PGP key for my PGP Public         |

|           http://www.winnipeg.freenet.mb.ca/~soo696/            |
+-----------------------------+-----------------------------------+