Operating System - Linux
1829491 Members
1485 Online
109991 Solutions
New Discussion

Re: Error regarding RPM Manager

 
Rajan_sa
Advisor

Error regarding RPM Manager


Hi ,

I have a development env server Redhat Enterprise AS 3.0 Installed.When ever I issue an rpm command the following error is reverted

""" rpm: error while loading shared libraries: libelf.so.1: cannot open shared object file: No such file or directory. """

Why is it so.. Due to which I cant install any rpms.. Please help me...

5 REPLIES 5
Alexander Chuzhoy
Honored Contributor

Re: Error regarding RPM Manager

try to run
ldconfig
and try again...
HGN
Honored Contributor

Re: Error regarding RPM Manager

Hi

Looks like the libraries are missing or did not get configured during install/upgrade

Refer to this http://linux.about.com/od/commands/l/blcmdl8_ldconfi.htm

Rgds

HGN
Jan Sladky
Trusted Contributor

Re: Error regarding RPM Manager

Didn't you install or upgrade rpm or some basic packages ?

I met the same error if I tried to upgrade some basic packages on test box( I din't remeber which ones, perhaps even rpm itself) without dependecies checking or with --force

Solution could be compile and install rpm from source.

You can also check whether exists higher or lower version of libelf.so.1 in /usr/lib and create link libelf.so.1 to that

rgds Jan
GSM, Intelligent Networks, UNIX
Rajan_sa
Advisor

Re: Error regarding RPM Manager

Thks for the inputs but still I am facing the same problem..

root@RHLnxAS3 lib]# ld
ld: error while loading shared libraries: libebl.so.1: cannot open shared object file: No such file or directory
[root@RHLnxAS3 lib]# rpm
rpm: error while loading shared libraries: libelf.so.1: cannot open shared object file: No such file or directory.

I had checked for the libelf.so.1 file in usr/lib & its there ..

I cant even re-install elfutils as it requires ld for the same... & so on...
Vitaly Karasik_1
Honored Contributor

Re: Error regarding RPM Manager

>I cant even re-install elfutils as it requires >ld for the same...

IMHO, you *can* reinstall them using rescue environment boot CDROM.