歡迎來到Linux教程網
Linux教程網
Linux教程網
Linux教程網
Linux教程網 >> Linux綜合 >> Linux資訊 >> Linux業界 >> Linux操作系統上安裝Mplayer播放器的方法

Linux操作系統上安裝Mplayer播放器的方法

日期:2017/3/2 13:46:13   编辑:Linux業界

  Linux下Mplayer播放器的安裝耗費了我一個晚上的時間,按照網上的安裝方法安裝的時候大多會出現不同程度的錯誤,這是因為你選擇系統版本的不同和安裝軟件完整性造成的,我使用的Red Linux 4企業版本。現在把我的安裝方法介紹一下:

  (1)首先下載一些軟件

  MPlayer-1.0pre7.tar.bz2

  Blue-1.7.tar.bz2

  all-20061022.tar.bz2

  windows-all-20061022.zip

  gb2312-ming.tar.bz2

  (2)安裝codecs

  #tar vjxf all-20061022.tar.bz2

  #mv all-20061022 /usr/local/lib/codecs

  #chmod 644 /usr/local/lib/codecs/*

  #unzip windows-all-20061022.zip

  #mv windows-all-20061022 /usr/local/lib/wincodecs

  #chmod 644 /usr/local/lib/wincodecs/*

  修改/etc/ld.so.conf把/usr/local/lib加入到此文件中

  然後ldconfig

  (3)安裝mplayer主程序

  #tar vjxf MPlayer-1.0pre7.tar.bz2

  #cd MPlayer-1.0pre7

  接下來是配置准備編譯。關於配置首先要確定幾個rpm的包是否安裝了,glib-devel- 1.2.10-15.i386.rpm,gtk+-devel-1.2.10-33.i386.rpm,沒有安裝的話可以到網上下載安裝,確認上面這幾個包已經安裝後,可以開始配置編譯了.

  #./configure --enable-gui --prefix=/usr/local/mplayer --with-codecsdir=/usr/local/lib/codecs/ --with-win32libdir=/usr/local/lib/wincodecs/ --disable-gcc-checking

  #make

  #make install

  (4)安裝字體

  #tar vjxf gb2312-ming.tar.bz2

  #mv gb2312-ming /usr/local/mplayer/share/mplayer/font/

  #cd /usr/local/mplayer/share/mplayer/font/

  #ln -s gb2312-ming font

  (5)安裝皮膚

  #tar vjxf Blue-1.7.tar.bz2

  #mv Blue /usr/local/mplayer/share/mplayer/Skin/

  #cd /usr/local/mplayer/share/mplayer/Skin/

  #ln -s Blue default

  (6)運行gmplayer

  這是會出現如下這樣的錯誤:

  "New_Face faild. Maybe the font path is wrong. please supply the text font file. ( ~/.mplayer/subfont.ttf )."

  解決方法是到字體文件復制一個字體到 .mplayer/ 把文件名改為subfont.ttf就可以了

  注意:/root/.mplayer文件被隱藏了,把它顯示出來就行了。

Copyright © Linux教程網 All Rights Reserved