rpm 在 redhat 上缺少依赖项

rpm 在 redhat 上缺少依赖项

不知何故,rpm它在我的 Redhat 发行版上停止工作。当我输入时rpm,我看到:

rpm: error while loading shared libraries: librpm-4.3.so: cannot open shared object file: No such file or directory

which rpm指向/bin/rpm。然后当我输入 时ldd /bin/rpm,我看到:

linux-gate.so.1 =>  (0x001ef000)
librpm-4.3.so => not found
librpmdb-4.3.so => not found
libselinux.so.1 => /lib/libselinux.so.1 (0x0099a000)
librpmio-4.3.so => not found
libpopt.so.0 => not found
libelf.so.1 => /usr/lib/libelf.so.1 (0x00384000)
libbeecrypt.so.6 => not found
libm.so.6 => /lib/libm.so.6 (0x0093c000)
libdl.so.2 => /lib/libdl.so.2 (0x00677000)
librt.so.1 => /lib/librt.so.1 (0x0066c000)
libpthread.so.0 => /lib/libpthread.so.0 (0x0067e000)
libz.so.1 => /lib/libz.so.1 (0x00968000)
libbz2.so.1 => not found
libc.so.6 => /lib/libc.so.6 (0x0039e000)
/lib/ld-linux.so.2 (0x00327000)

所以不知怎的,我似乎至少丢失了这个文件librpm-4.3.so。我怎样才能获得它并将其放在我机器上的正确文件夹中?

相关内容