在 CentOS 中重新安装软件包

在 CentOS 中重新安装软件包

我正在尝试安装 perl 包并收到以下依赖项错误:

[user@localhost Downloads]$ rpm -Uvh ImageMagick-6.8.4-9.i386.rpm 
error: Failed dependencies:
    libltdl.so.3 is needed by ImageMagick-6.8.4-4.i386

为了解决这个问题,我尝试安装缺少的软件包,但它似乎已经存在:

[Evgeny@localhost Downloads]$ sudo yum install libltdl.so.3
...
No package libltdl.so.3 available.

然后我尝试使用yumwithreinstall选项,但出现另一个错误:

[Evgeny@localhost Downloads]$ sudo yum reinstall libltdl.so.3
...
No Match for argument: libltdl.so.3
Error: Nothing to do

这里有什么问题?我应该完全卸载当前libltdl.so.3软件包并从头开始安装吗?或者也许有不同的问题?

答案1

您需要安装软件包“libtool-ltdl”而不是“libltdl.so.3”。这只是一个共享库,是上述软件包的一部分。

yum install "libtool-ltdl"
rpm -Uvh ImageMagick-6.8.4-9.i386.rpm

应该让它工作。

以下是包含适用于 centos 的 libltdl.so.3 文件的软件包的所有结果

You have chosen search in content of rpms.
Display 1 - 38 hits of 38. Search took 0.02 seconds.
1
1




Search results for libltdl.so.3 :
CentOS 5    ftp.centos.org/5.9/os/x86_64/CentOS/libtool-ltdl-1.5.22-7.el5_4.x86_64.rpm
CentOS 5    ftp.centos.org/5.9/os/x86_64/CentOS/libtool-ltdl-1.5.22-7.el5_4.i386.rpm
CentOS 5    ftp.centos.org/5.9/os/i386/CentOS/libtool-ltdl-1.5.22-7.el5_4.i386.rpm
CentOS Other    yum.trixbox.org/centos/4/RPMS/libtool-libs-1.5.6-4.EL4.1.c4.4.i386.rpm
Other   ftp.rpmhelp.net/pub/releases/1.0-CURRENT/i586/RPMS/libltdl3-1.4.3-9sls.i586.rpm
Other   ftp.sourceforge.net/pub/sourceforge/g/gw/gwmos/GW Monitor Community Edition/5.0.5-208/groundwork-monitor-os-5.0.5-208.sles9.i586.rpm
Other   ftp.sourceforge.net/pub/sourceforge/g/gw/gwmos/GW Monitor Community Edition/5.0.5-208/groundwork-monitor-os-5.0.5-208.sles10.i586.rpm
Other   ftp.sourceforge.net/pub/sourceforge/g/gw/gwmos/OldFiles/groundwork-monitor-os-4.5-M1.31a.i586.rpm
Other   ftp.sourceforge.net/pub/sourceforge/m/ma/mapifier/OldFiles/groundwork-monitor-os-4.5-M1.31.i586.rpm
Other   ftp.sourceforge.net/pub/sourceforge/g/gw/gwmos/GW Monitor Community Edition/4.5.11/groundwork-monitor-os-4.5-11.i586.rpm
Other   ftp.sourceforge.net/pub/sourceforge/a/ar/arp2.berlios/gg-libtool-1.4.2-2.i386.rpm
Other   ftp.sourceforge.net/pub/sourceforge/a/ar/arp2.berlios/gg-libtool-1.4.2-1.i386.rpm
Other   ftp.sourceforge.net/pub/sourceforge/a/ac/ac-archive/autotools/2002-03/autotools-for-ac.2.53.lt.1.4.2.am.1.6-2sfnet.i586.rpm
Other   ftp.sourceforge.net/pub/sourceforge/a/ac/ac-archive/autotools/2002-03/autotools-for-ac.2.53.lt.1.4.2.am.1.5-2sfnet.i586.rpm
Other   ftp.sourceforge.net/pub/sourceforge/a/ac/ac-archive/autotools/2002-03/autotools-for-ac.2.52.lt.1.4.am.1.4.5-2sfnet.i586.rpm
Other   ftp.sourceforge.net/pub/sourceforge/a/ac/ac-archive/autotools/2002-03/autotools-for-ac.2.52.lt.1.4.am.1.4-2sfnet.i586.rpm
Other   ftp.sourceforge.net/pub/sourceforge/a/ac/ac-archive/autotools/2002-03/autotools-for-ac.2.52.lt.1.4.2.am.1.6-2sfnet.i586.rpm
Other   ftp.sourceforge.net/pub/sourceforge/a/ac/ac-archive/autotools/2002-03/autotools-for-ac.2.52.lt.1.4.2.am.1.5-2sfnet.i586.rpm
Other   ftp.sourceforge.net/pub/sourceforge/a/ac/ac-archive/autotools/2002-03/autotools-for-ac.2.52.lt.1.4.2.am.1.4.5-2sfnet.i586.rpm
Other   ftp.sourceforge.net/pub/sourceforge/a/ac/ac-archive/autotools/2002-03/autotools-for-ac.2.52.lt.1.4.2.am.1.4-2sfnet.i586.rpm
Other   ftp.sourceforge.net/pub/sourceforge/a/ac/ac-archive/autotools/2002-03/autotools-for-ac.2.13.lt.1.4.am.1.5-2sfnet.i586.rpm
Other   ftp.sourceforge.net/pub/sourceforge/a/ac/ac-archive/autotools/2002-03/autotools-for-ac.2.13.lt.1.4.am.1.4-2sfnet.i586.rpm
Other   ftp.sourceforge.net/pub/sourceforge/a/ac/ac-archive/autotools/2002-03/autotools-for-ac.2.13.lt.1.4.2.am.1.5-2sfnet.i586.rpm
Other   ftp.sourceforge.net/pub/sourceforge/a/ac/ac-archive/autotools/2002-03/autotools-for-ac.2.13.lt.1.4.2.am.1.4.5-2sfnet.i586.rpm
Other   ftp.sourceforge.net/pub/sourceforge/a/ac/ac-archive/autotools/2002-03/autotools-for-ac.2.13.lt.1.4.2.am.1.4-2sfnet.i586.rpm
Other   ftp.sourceforge.net/pub/sourceforge/a/ac/ac-archive/OldFiles/autotools-ac.2.52d.lt.1.4b.am.1.5-2sfnet.i586.rpm
Other   ftp.sourceforge.net/pub/sourceforge/a/ac/ac-archive/OldFiles/autotools-ac.2.52d.lt.1.4.am.1.5-2sfnet.i586.rpm
Other   ftp.sourceforge.net/pub/sourceforge/a/ac/ac-archive/OldFiles/autotools-ac.2.52d.lt.1.4.am.1.4.5-2sfnet.i586.rpm
Other   ftp.sourceforge.net/pub/sourceforge/a/ac/ac-archive/OldFiles/autotools-ac.2.52d.lt.1.4.2.am.1.5-2sfnet.i586.rpm
Other   ftp.sourceforge.net/pub/sourceforge/a/ac/ac-archive/OldFiles/autotools-ac.2.52d.lt.1.4.2.am.1.4l-2sfnet.i586.rpm
Other   ftp.sourceforge.net/pub/sourceforge/a/ac/ac-archive/OldFiles/autotools-ac.2.52.lt.1.4b.am.1.5-2sfnet.i586.rpm
Other   ftp.sourceforge.net/pub/sourceforge/a/ac/ac-archive/OldFiles/autotools-ac.2.52.lt.1.4.am.1.5-2sfnet.i586.rpm
Other   ftp.sourceforge.net/pub/sourceforge/a/ac/ac-archive/OldFiles/autotools-ac.2.52.lt.1.4.am.1.4l-2sfnet.i586.rpm
Other   ftp.sourceforge.net/pub/sourceforge/a/ac/ac-archive/OldFiles/autotools-ac.2.52.lt.1.4.am.1.4.5-2sfnet.i586.rpm
Other   ftp.sourceforge.net/pub/sourceforge/a/ac/ac-archive/OldFiles/autotools-ac.2.52.lt.1.4.am.1.4-2sfnet.i586.rpm
Other   ftp.sourceforge.net/pub/sourceforge/a/ac/ac-archive/OldFiles/autotools-ac.2.52.lt.1.4.2.am.1.5-2sfnet.i586.rpm
Other   ftp.sourceforge.net/pub/sourceforge/a/ac/ac-archive/OldFiles/autotools-ac.2.52.lt.1.4.2.am.1.4f-2sfnet.i586.rpm
Other   ftp.sourceforge.net/pub/sourceforge/a/ac/ac-archive/OldFiles/autotools-ac.2.52.lt.1.4.2.am.1.4.5-2sfnet.i586.rpm

答案2

一个简单的yum install ImageMagick应该做的(它不太可能在没有依赖项的情况下安装)。如果系统认为该软件包已安装,yum reinstall ImageMagick则运行该命令。如果这造成麻烦,yum deplist ...请提供提供依赖项的包列表。

还要安装yum-utils,至少检查yum和 的手册页package-cleanup

相关内容