Por que o yum-builddep não fornece as dependências para instalar o meu rpm?

1

Estou tentando acessar meu pacote rpm, mas recebendo este erro de dependências.

[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

Para resolver o erro de dependência, usei o seguinte comando.

[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

Estou usando o CentOS 5.6 que está instalado no VirtualBox no Fedora-15.

    
por juned 06.11.2012 / 07:53

1 resposta

2

O comando yum-buliddep instala dependências para construir um pacote a partir da origem, não instalando-o. Se você usar o yum para instalar o RPM, ele instalará dependências de fontes remotas se os pacotes estiverem disponíveis.

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

Em versões mais antigas do yum, talvez seja necessário usar localinstall para um arquivo local:

yum localinstall /root/x86_64/asterisk-1.8.12.2-1.fc15.x86_64.rpm
    
por 06.11.2012 / 08:18