LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (http://www.linuxquestions.org/questions/linux-software-2/)
-   -   Urgent !!! rpm: error while loading shared libraries: libelf.so.1: cannot open shared (http://www.linuxquestions.org/questions/linux-software-2/urgent-rpm-error-while-loading-shared-libraries-libelf-so-1-cannot-open-shared-75603/)

tinaa 07-24-2003 04:45 PM

Urgent !!! rpm: error while loading shared libraries: libelf.so.1: cannot open shared
 
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,
Tina.

je_fro 07-24-2003 05:36 PM

So....
 
Do you have that libelf?

tinaa 07-24-2003 05:42 PM

Hello,

I am on Redhat 7.3 and i installed the RPM package for Redhat 9.I compiled libelf.so.0 and it requires libelf.so.1 which i don't have.

Regards,

utopicdog 08-11-2003 12:03 PM

my version of rpm is staticly linked. could you try to get the RPM for your version of RPM and use the old RPM to install it ???

otherwise

one trick is to make a link called libelf.so.1 and link to your old libelf.so.0, run ldconfig and see if its fooled.

Soeren 03-04-2007 04:21 PM

hello tina,

I ran into the same problem, when installing rpmbuild.
Anyway, running

Code:

/sbin/ldconfig
as root solved the inconsistency.

Hope that helps.
soeren

Quote:

Originally Posted by tinaa
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,
Tina.


braclayrab 12-02-2008 03:19 PM

This worked for me:
Code:

sudo yum install compat-libstdc++-33.i386
...just don't ask me why.
I'm running CentOS 5.
Cheers!

Edit:
My error was slightly different
Code:

error while loading shared libraries: libstdc++.so.5: cannot open shared object file: No such file or directory


All times are GMT -5. The time now is 01:00 PM.