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

Fedora-15의 VirtualBox에 설치된 CentOS 5.6을 사용하고 있습니다.

답변1

yum-buliddep명령은 패키지를 설치하는 대신 소스에서 패키지를 빌드하는 종속성을 설치합니다. yum을 사용하여 RPM을 설치하는 경우 패키지가 사용 가능한 경우 원격 소스에서 종속성을 설치합니다.

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

localinstall이전 버전의 yum에서는 로컬 파일을 사용해야 할 수도 있습니다 .

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

관련 정보