RPM 패키지를 빌드하기 전에 자동으로 빌드 종속성을 설치합니다.

RPM 패키지를 빌드하기 전에 자동으로 빌드 종속성을 설치합니다.

.rpm 패키지를 만들려고 합니다. 방금 이 작업을 수행하기 위한 단계를 따랐습니다. 지금까지 모든 단계가 순조롭게 진행되고 있지만 지금은 이 단계에만 머물고 있습니다. 방금 다음 명령을 실행했는데 이 오류가 발생했습니다.

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

나는 fedora-15를 사용하고 있습니다. 이 오류를 해결하는 방법은 무엇입니까? 어떤 아이디어나 제안이라도 대단히 감사하겠습니다
.

답변1

이 개발 패키지를 설치하면 됩니다.

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 

이 패키지가 표준 저장소에 속해 있으면 대신 사용하십시오 yum-builddep XXX. ( yum-utils먼저 설치해야 함)

관련 정보