为什么 yum-builddep 不提供安装我的 rpm 的依赖项?

为什么 yum-builddep 不提供安装我的 rpm 的依赖项?

我正在尝试朗读我的 rpm 包,但出现此依赖项错误。

[root@localhost ~]# rpm -ivh /root/x86_64/asterisk-1.8.12.2-1.fc15.x86_64.rpm 
error: Failed dependencies:
        libc.so.6(GLIBC_2.14)(64bit) is needed by asterisk-1.8.12.2-1.fc15.x86_64
        libc.so.6(GLIBC_2.7)(64bit) is needed by asterisk-1.8.12.2-1.fc15.x86_64
        libc.so.6(GLIBC_2.8)(64bit) is needed by asterisk-1.8.12.2-1.fc15.x86_64
        libcap.so.2()(64bit) is needed by asterisk-1.8.12.2-1.fc15.x86_64
        libcrypto.so.10()(64bit) is needed by asterisk-1.8.12.2-1.fc15.x86_64
        libedit.so.0()(64bit) is needed by asterisk-1.8.12.2-1.fc15.x86_64
        libgsm.so.1()(64bit) is needed by asterisk-1.8.12.2-1.fc15.x86_64
        libpopt.so.0(LIBPOPT_0)(64bit) is needed by asterisk-1.8.12.2-1.fc15.x86_64
        libresample.so.1()(64bit) is needed by asterisk-1.8.12.2-1.fc15.x86_64
        libspeexdsp.so.1()(64bit) is needed by asterisk-1.8.12.2-1.fc15.x86_64
        libsrtp.so.0()(64bit) is needed by asterisk-1.8.12.2-1.fc15.x86_64
        libssl.so.10()(64bit) is needed by asterisk-1.8.12.2-1.fc15.x86_64
        libtinfo.so.5()(64bit) is needed by asterisk-1.8.12.2-1.fc15.x86_64
        libxml2.so.2(LIBXML2_2.4.30)(64bit) is needed by asterisk-1.8.12.2-1.fc15.x86_64
        libxml2.so.2(LIBXML2_2.6.0)(64bit) is needed by asterisk-1.8.12.2-1.fc15.x86_64
        rpmlib(FileDigests) <= 4.6.0-1 is needed by asterisk-1.8.12.2-1.fc15.x86_64
        rpmlib(PayloadIsXz) <= 5.2-1 is needed by asterisk-1.8.12.2-1.fc15.x86_64

为了解决依赖性错误,我使用了以下命令。

[root@localhost ~]# yum-builddep asterisk-1.8.12.2-1.fc15.src.rpm 
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
 * base: mirrors.hns.net.in
 * extras: mirrors.hns.net.in
 * updates: mirrors.hns.net.in
Checking for new repos for mirrors
autoconf-2.59-12.noarch
automake-1.9.6-2.3.el5.noarch
openssl-devel-0.9.8e-22.el5_8.4.x86_64
newt-devel-0.52.2-15.el5.x86_64
ncurses-devel-5.5-24.20060715.x86_64
libcap-devel-1.10-26.x86_64
gtk2-devel-2.10.4-21.el5_7.7.x86_64
Error: No Package found for libsrtp-devel

我使用的是 CentOS 5.6,它安装在 Fedora-15 上的 VirtualBox 中。

答案1

yum-buliddep命令安装从源构建包的依赖项,而不是安装它。如果您使用 yum 安装 RPM,如果软件包可用,它将从远程源安装依赖项。

yum install /root/x86_64/asterisk-1.8.12.2-1.fc15.x86_64.rpm

在旧版本的 yum 上,您可能需要使用localinstall本地文件:

yum localinstall /root/x86_64/asterisk-1.8.12.2-1.fc15.x86_64.rpm

相关内容