Centos
如何在具有所有依賴項的 CentOS 6.8 上安裝 ffmpeg?我收到很多“錯誤包……需要……”
我正在嘗試在 CentOS 6.8 伺服器上安裝 ffmpeg,但遇到了一些與所需庫相關的錯誤。如何安裝那些缺少的庫?我在哪裡可以找到它們?我應該怎麼做才能安裝 FFMPEG?
以下是錯誤:
Error: Package: libavdevice-2.6.8-3.el7.nux.x86_64 (nux-dextop) Requires: libcdio_paranoia.so.1()(64bit) Error: Package: ffmpeg-libs-2.6.8-3.el7.nux.x86_64 (nux-dextop) Requires: libgnutls.so.28(GNUTLS_1_4)(64bit) Error: Package: libavdevice-2.6.8-3.el7.nux.x86_64 (nux-dextop) Requires: libopenal.so.1()(64bit) Error: Package: ffmpeg-libs-2.6.8-3.el7.nux.x86_64 (nux-dextop) Requires: libgmp.so.10()(64bit) Error: Package: ffmpeg-compat-0.6.7-9.el7.nux.x86_64 (nux-dextop) Requires: libjack.so.0()(64bit) Error: Package: xvidcore-1.3.2-5.el7.nux.x86_64 (nux-dextop) Requires: libm.so.6(GLIBC_2.15)(64bit) Error: Package: ffmpeg-libs-2.6.8-3.el7.nux.x86_64 (nux-dextop) Requires: liblzma.so.5()(64bit) Error: Package: ffmpeg-libs-2.6.8-3.el7.nux.x86_64 (nux-dextop) Requires: libopus.so.0()(64bit) Error: Package: libavdevice-2.6.8-3.el7.nux.x86_64 (nux-dextop) Requires: libcdio_cdda.so.1()(64bit) Error: Package: libavdevice-2.6.8-3.el7.nux.x86_64 (nux-dextop) Requires: libcdio_cdda.so.1(CDIO_CDDA_1)(64bit) Error: Package: ffmpeg-libs-2.6.8-3.el7.nux.x86_64 (nux-dextop) Requires: liblzma.so.5(XZ_5.0)(64bit) Error: Package: ffmpeg-compat-0.6.7-9.el7.nux.x86_64 (nux-dextop) Requires: libgmp.so.10()(64bit) Error: Package: librtmp-2.4-2.20131205.gitdc76f0a.el7.nux.x86_64 (nux-dextop) Requires: libgnutls.so.28(GNUTLS_2_12)(64bit) Error: Package: librtmp-2.4-2.20131205.gitdc76f0a.el7.nux.x86_64 (nux-dextop) Requires: libgnutls.so.28(GNUTLS_1_4)(64bit) Error: Package: ffmpeg-libs-2.6.8-3.el7.nux.x86_64 (nux-dextop) Requires: libgnutls.so.28()(64bit) Error: Package: ffmpeg-libs-2.6.8-3.el7.nux.x86_64 (nux-dextop) Requires: libass.so.5()(64bit) Error: Package: ffmpeg-libs-2.6.8-3.el7.nux.x86_64 (nux-dextop) Requires: libopenjpeg.so.1()(64bit) Error: Package: ffmpeg-compat-0.6.7-9.el7.nux.x86_64 (nux-dextop) Requires: libopenjpeg.so.1()(64bit) Error: Package: libavdevice-2.6.8-3.el7.nux.x86_64 (nux-dextop) Requires: libcdio_paranoia.so.1(CDIO_PARANOIA_1)(64bit) Error: Package: x265-libs-1.9-1.el7.nux.x86_64 (nux-dextop) Requires: libm.so.6(GLIBC_2.15)(64bit) Error: Package: ffmpeg-libs-2.6.8-3.el7.nux.x86_64 (nux-dextop) Requires: libgnutls.so.28(GNUTLS_3_0_0)(64bit) Error: Package: librtmp-2.4-2.20131205.gitdc76f0a.el7.nux.x86_64 (nux-dextop) Requires: libgnutls.so.28()(64bit) You could try using --skip-broken to work around the problem You could try running: rpm -Va --nofiles --nodigest
回購清單:
200 packages excluded due to repository protections repo id repo name status base CentOS-6 - Base 6,634+62 dag DAG RPM Repository 4,634+84 extras CentOS-6 - Extras 61 hgdedi HG Monitoring Repo 369 ksplice-uptrack Ksplice Uptrack for CentOS 14 nodesource Node.js Packages for Enterprise Linux 6 - x86_64 49 nux-dextop Nux.Ro RPMs for general desktop use 2,347+123 rpmforge RHEL 6 - RPMforge.net - dag 4,634+84 ul UL 58 ul_hostgator UL_HostGator 8 updates CentOS-6 - Updates 137 repolist: 18,945
看起來您一直在使用 DAG 和 NUX 儲存庫。NUX 儲存庫更新更多,因此當 yum 查找依賴項時,它會提供 CentOS 7 的依賴項,我確信這就是沒有安裝依賴項的原因。
如果您暫時禁用 NUX,並且僅將 DAG 用於此目的,我認為此處提到的說明可以正常工作。我自己在 CentOS 6 中嘗試過它們。https://chrisjean.com/install-ffmpeg-and-ffmpeg-php-on-centos-easily/
我希望這對你有用。