如何在 CentOS 6.8 上安装 ffmpeg 及其所有依赖项?我收到很多“错误包...需要...”

如何在 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

答案1

看起来您一直在使用 DAG 和 NUX 存储库。 NUX 存储库更新得更多,因此当 yum 查找依赖项时,它会提供 CentOS 7 的依赖项,我确信这就是未安装依赖项的原因。

如果您暂时禁用 NUX,并且仅使用 DAG 来实现此目的,我认为此处提到的说明可以正常工作。我自己在 CentOS 6 中尝试过它们。https://chrisjean.com/install-ffmpeg-and-ffmpeg-php-on-centos-easily/

我希望这对你有用。

相关内容