Linux

在 Centos 7 上安裝 mplayer

  • March 1, 2017

我已經嘗試了幾天在 Centos 7 上安裝 mplayer 沒有成功,我安裝了很多 repos 但沒有任何效果,我總是出現以下錯誤:

-> Resolve Dependencies completed
Error: Package: 4: mplayer-1.2-93_snap20140413.el7.x86_64 (atrpms)
          Requires: libaudio.so.2 () (64bit)
Error: Package: 4: mplayer-1.2-93_snap20140413.el7.x86_64 (atrpms)
          Requires: libvga.so.1 () (64bit)
Error: Package: 4: mplayer-1.2-93_snap20140413.el7.x86_64 (atrpms)
          Requires: libartsc.so.0 () (64bit)
Error: Package: mpg123-1.18.1-1.el7.x86_64 (atrpms)
          Requires: libaudio.so.2 () (64bit)
Error: Package: 4:mplayer-1.2-93_snap20140413.el7.x86_64 (atrpms)
          Requires: libnemesi.so.1 () (64bit)
Error: Package: mpg123-1.18.1-1.el7.x86_64 (atrpms)
          Requires: libartsc.so.0 () (64bit)
You can try using --skip-broken to work around the problem
You can try running: rpm -Va --nofiles --nodigest

我使用以下儲存庫:

yum repolist enabled

atrpms/7/x86_64                       Fedora Core 7 - x86_64 - ATrpms                                       827
base/7/x86_64                         CentOS-7 - Base                                                     8 465
epel/x86_64                           Extra Packages for Enterprise Linux 7 - x86_64                      7 419
extras/7/x86_64                       CentOS-7 - Extras                                                     104
rpmforge                              RHEL 7 - RPMforge.net - dag                                           245
rpmforge-extras                       RHEL 7 - RPMforge.net - extras                                         10
updates/7/x86_64                      CentOS-7 - Updates 
repolist: 18 794

任何的想法 ?

感謝您的幫助,我找到了解決方案,我已經在rpmfind.net上下載並安裝了缺少的依賴項,但是對於 Fedora 20 64 位(Fedora 19 64 位的依賴項不完整),它可以完美執行。

EL7/CentOS7 的 Mplayer 在RPM Fusion中。

所以就這樣做

curl -O https://download1.rpmfusion.org/free/el/rpmfusion-free-release-7.noarch.rpm

獲得免費的 repo RPM,加上

curl -O https://download1.rpmfusion.org/nonfree/el/rpmfusion-nonfree-release-7.noarch.rpm

如果您還想要非免費編解碼器,請執行

sudo yum localinstall *.rpm

進而

sudo yum install mplayer

引用自:https://unix.stackexchange.com/questions/190963