Emergency !! rpm: error while loading shared libraries: libelf.so.1: cannot open

mitul

Well-Known Member
Feb 8, 2003
291
0
166
Hello All,

When i do anything that is related with RPM it gives me the following error

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

[root@server ]# rpm -Uvh rpm-4.0.4-7x.18.i386.rpm
rpm: error while loading shared libraries: libelf.so.1: cannot open shared object file: No such file or directory

Any Help

Regards,

cPanel.net Support Ticket Number:
 

mitul

Well-Known Member
Feb 8, 2003
291
0
166
Originally posted by pschams
Did you try finding this file on your system? It may be missing

If missing: May want to reinstall it from source (http://freshmeat.net/projects/libelf/?topic_id=864)

If not missing: May want to check your ldconfig file to make sure it points to the right directory.

cPanel.net Support Ticket Number:
Thank you for the prompt reply!

I installed the libelf.so.0 from the link u have given but still the error remains the same.Actually i Installed RPM for Redhat 9 by mistake and i am using Redhat 7.3.

the error says the libelf.so.1 cannot be loaded.... :(

When i say /sbin/ldconfig nothing returns except the next prompt.

Regards,

cPanel.net Support Ticket Number:
 
Last edited:

Sash

Well-Known Member
Feb 18, 2003
252
0
166
Have you done a reboot?

Mike

cPanel.net Support Ticket Number:
 

mitul

Well-Known Member
Feb 8, 2003
291
0
166
Originally posted by Sash
Have you done a reboot?

Mike

cPanel.net Support Ticket Number:
Yes I did but no use the problem continues.

Regards,

cPanel.net Support Ticket Number:
 

thewordsmith

Registered
Apr 6, 2011
1
0
51
If using Fedora XX you are missing "elfutils-libelf" and needed packages.

Solution that worked for me. Download

elfutils-libelf
elfutils
elfutils-libelf-devel
elfutils-libelf(x86-32) or the 64 bit version.

Download the those packages into an accessible dir.


Reboot with your rescue disk. CD to the downloaded dir. Run rpm -iv --force --nodeps --root=/mnt/sysimage "elfutils*rpm.

Notice I uses a wildcard "elfutils*rpm" to specify all rpm packages. --root=/mnt/sysimage is needed to install the packages onto the OS installed on your HD for RedHat Fedora systems. --nodeps means do not search for package dependencies.

That should work. Good luck.
 

cPanelTristan

Quality Assurance Analyst
Staff member
Oct 2, 2010
7,607
43
348
somewhere over the rainbow
cPanel Access Level
Root Administrator
Please note that this thread was from 2003, so the issues listed might well not be valid any longer. Additionally, Fedora is not in the list of supported OS for cPanel any longer:

System Requirements - cPanel Inc.