LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Need to fix RPM...I guess? (https://www.linuxquestions.org/questions/linux-newbie-8/need-to-fix-rpm-i-guess-933182/)

rziya 03-07-2012 05:29 AM

Need to fix RPM...I guess?
 
Hello,

I am trying to remotely manage a VPS with Centos 5.5 on it. However yum is not functional. And further research showed me that RPM is not working too.

rpm does not run giving the error below.

rpm: error while loading shared libraries: libpopt.so.0: cannot open shared object file: No such file or directory

tried to compile popt from source, and succeded but the problem is not solved.

any help?

Rziya

acid_kewpie 03-07-2012 05:55 AM

I wouldn't compile it, I'd get the appropriate RPM, pull the RPM apart with mc and manually place that file in place. That is, IF the file doesn't exist (Usually in /usr/lib on i386), maybe there's a simple environmental issue. I'd wonder WHY it's doing that though, could be a real can of worms there.

rziya 03-07-2012 06:44 AM

libpopt.so.0 where else?
 
Hello,

I copied the compiled libpopt.so.0 to /usr/lib and rpm, yum started working. But other packages are also looking for/dependent on this file. And it seems to me rpm still think it is not there. Any suggestions?

Ruchan


Error: Missing Dependency: libpopt.so.0 is needed by package samba-swat-3.0.33-3.29.el5_7.4.i386 (updates)
Error: Missing Dependency: popt = 1.10.2.3-22.el5_7.2 is needed by package rpm-libs-4.4.2.3-22.el5_7.2.i386 (updates)
Error: Missing Dependency: popt = 1.10.2.3-22.el5_7.2 is needed by package rpm-4.4.2.3-22.el5_7.2.i386 (updates)
Error: Missing Dependency: libpopt.so.0 is needed by package samba-client-3.0.33-3.29.el5_7.4.i386 (updates)
Error: Missing Dependency: libpopt.so.0 is needed by package libuser-0.54.7-2.1.el5_5.2.i386 (base)
Error: Missing Dependency: libpopt.so.0 is needed by package samba-3.0.33-3.29.el5_7.4.i386 (updates)
Error: Missing Dependency: libpopt.so.0 is needed by package passwd-0.73-2.i386 (base)
Error: Missing Dependency: libpopt.so.0 is needed by package 1:net-snmp-5.3.2.2-14.el5_7.1.i386 (updates)
Error: Missing Dependency: libpopt.so.0 is needed by package rpm-python-4.4.2.3-22.el5_7.2.i386 (updates)
Error: Missing Dependency: libpopt.so.0 is needed by package samba-common-3.0.33-3.29.el5_7.4.i386 (updates)
Error: Missing Dependency: popt = 1.10.2.3-22.el5_7.2 is needed by package rpm-python-4.4.2.3-22.el5_7.2.i386 (updates)
Error: Missing Dependency: libpopt.so.0 is needed by package util-linux-2.13-0.56.el5.i386 (base)
Error: Missing Dependency: libpopt.so.0 is needed by package rpm-libs-4.4.2.3-22.el5_7.2.i386 (updates)
Error: Missing Dependency: libpopt.so.0 is needed by package rpm-4.4.2.3-22.el5_7.2.i386 (updates)
Error: Missing Dependency: libpopt.so.0 is needed by package rsync-3.0.6-4.el5_7.1.i386 (updates)
Error: Missing Dependency: libpopt.so.0 is needed by package logrotate-3.7.4-12.i386 (base)

acid_kewpie 03-07-2012 06:46 AM

OK, so if that package was not in the database, at the *RPM* level, that file would not necessarily be thought to exist. I don't know if that will be looking at rpmdb or the filesystem for it. Now you can get that far, formally reinstall the RPM package you manually unpacked, forcing it if need be. From then the RPM db will know it should exist and off you go.


All times are GMT -5. The time now is 05:27 PM.