Am I in trouble !
I got this error at the boot:
This occured after Matlab GUI crashed on KDE;
/bin/date: error while loading shared library
libraries: librt.so.1 cannot open shared object file: No such file or directory
after that booting goes on, and the when the system is done, X doesn't start instead I get this:
INIT: Id "x" respawning too fast: diabled for 5 minutes
Up to now I tried these:
1) I manually created link for librt.so.1 to librt-2.3.2.so because when I look at file information for librt.so.1, it was saying that it is a broken link to lijrt-2.3.2.so so I thought it should be librt-2.3.2.so
2)Then I tried /bin/date again
[root@localhost root]# /bin/date
/bin/date: error while loading shared libraries: /lib/librt.so.1 : invalid ELF header
3) then
[root@localhost root]# ldconfig
ldconfig: /lib/librt-2.3.2.so is not an ELF file-it has the wrong magic bytes at the start
/lib/librt.so.1 is not an ELF file-it has the wrong magic bytes at the start
usr/lib/librt.so is not an ELF file-it has the wrong magic bytes at the start
I then thought that I may be massing things up and modified the librt.so.1 as it were before linking lijrt-2.3.2.so, afterwards
4) Boot from CD, then
bash-2.05b# ldconfig -r /mnt/sysimage
ldconfig: /lib/librt-2.3.2.so is not an ELF file-it has the wrong magic bytes at the start
5)
bash-2.05b# rpm --root /mnt/sysimage -qf /mnt/sysimage/lib/librt-2.3.2.so
file /mnt/sysimage/lib/librt-2.3.2.so is not owned by any package
6) I tried these also
bash-2.05b# rpm --root /mnt/sysimage --force -ivh elfutils-libelf-0.76-3.i386.rpm
/sbin/ldconfig: /lib/librt-2.3.2.so is not an ELF file-it has the wrong magic bytes at the start
rpm db:/var/lib/rpm/Triggername: No such file or directory
rpm db:/var/lib/rpm/Triggername: cannot sync:No such file or directory
error:db4 error(2) from dbenv-> close: No such file or directory
I guess I wrote everything...
what can be done now?
|