Instale automaticamente dependências de compilação antes de construir um pacote RPM

1

Estou tentando criar o pacote .rpm. Acabei de seguir os passos para fazer isso. Até agora todo o passo foi embora, mas agora eu só estou preso com este passo. Acabei de executar o seguinte comando e recebi este erro:

rpmbuild -ba asterisk.spec
error: Failed build dependencies: 
    gtk2-devel is needed by asterisk-1.8.12.2-1.fc15.x86_64
    libsrtp-devel is needed by asterisk-1.8.12.2-1.fc15.x86_64
    gmime22-devel is needed by asterisk-1.8.12.2-1.fc15.x86_64
    graphviz is needed by asterisk-1.8.12.2-1.fc15.x86_64
    graphviz-gd is needed by asterisk-1.8.12.2-1.fc15.x86_64
    latex2html is needed by asterisk-1.8.12.2-1.fc15.x86_64
    neon-devel is needed by asterisk-1.8.12.2-1.fc15.x86_64
    libical-devel is needed by asterisk-1.8.12.2-1.fc15.x86_64
    speex-devel >= 1.2 is needed by asterisk-1.8.12.2-1.fc15.x86_64
    gsm-devel is needed by asterisk-1.8.12.2-1.fc15.x86_64
    libedit-devel is needed by asterisk-1.8.12.2-1.fc15.x86_64
    openais-devel is needed by asterisk-1.8.12.2-1.fc15.x86_64
    alsa-lib-devel is needed by asterisk-1.8.12.2-1.fc15.x86_64
    dahdi-tools-devel >= 2.0.0 is needed by asterisk-1.8.12.2-1.fc15.x86_64
    dahdi-tools-libs >= 2.0.0 is needed by asterisk-1.8.12.2-1.fc15.x86_64
    libpri-devel >= 1.4.12 is needed by asterisk-1.8.12.2-1.fc15.x86_64
    libss7-devel >= 1.0.1 is needed by asterisk-1.8.12.2-1.fc15.x86_64
    spandsp-devel >= 0.0.5-0.1.pre4 is needed by asterisk-1.8.12.2-1.fc15.x86_64
    iksemel-devel is needed by asterisk-1.8.12.2-1.fc15.x86_64
    jack-audio-connection-kit-devel is needed by asterisk-1.8.12.2-1.fc15.x86_64
    libresample-devel is needed by asterisk-1.8.12.2-1.fc15.x86_64
    lua-devel is needed by asterisk-1.8.12.2-1.fc15.x86_64
    mISDN-devel is needed by asterisk-1.8.12.2-1.fc15.x86_64
    bluez-libs-devel is needed by asterisk-1.8.12.2-1.fc15.x86_64
    libtool-ltdl-devel is needed by asterisk-1.8.12.2-1.fc15.x86_64
    unixODBC-devel is needed by asterisk-1.8.12.2-1.fc15.x86_64
    portaudio-devel >= 19 is needed by asterisk-1.8.12.2-1.fc15.x86_64
    postgresql-devel is needed by asterisk-1.8.12.2-1.fc15.x86_64
    radiusclient-ng-devel is needed by asterisk-1.8.12.2-1.fc15.x86_64
    net-snmp-devel is needed by asterisk-1.8.12.2-1.fc15.x86_64
    lm_sensors-devel is needed by asterisk-1.8.12.2-1.fc15.x86_64
    freetds-devel is needed by asterisk-1.8.12.2-1.fc15.x86_64
    uw-imap-devel is needed by asterisk-1.8.12.2-1.fc15.x86_64

Estou usando o fedora-15. Como resolver esse erro? Qualquer ideia e sugestão serão apreciadas. Obrigado

    
por juned 05.11.2012 / 07:19

1 resposta

0

Basta instalar esses pacotes de devel,

yum -y install alsa-lib-devel bluez-libs-devel dahdi-tools-devel dahdi-tools-libs freetds-devel gmime22-devel graphviz graphviz-gd gsm-devel gtk2-devel iksemel-devel jack-audio-connection-kit-devel latex2html libedit-devel libical-devel libpri-devel libresample-devel libsrtp-devel libss7-devel libtool-ltdl-devel lm_sensors-devel lua-devel mISDN-devel neon-devel net-snmp-devel openais-devel portaudio-devel postgresql-devel radiusclient-ng-devel spandsp-devel speex-devel unixODBC-devel uw-imap-devel 

Se este pacote pertencer ao repositório padrão, use yum-builddep XXX . (precisa instalar yum-utils primeiro)

    
por 05.11.2012 / 07:52

Tags