下載主程式:
MPlayer-1.0pre8.tar.bz2
官方解碼器:
essential-20071007.tar.bz2
官方win32_CODES-all:
windows-essential-20071007.zip
皮膚:
Orange-1.3.tar.bz2
下載網址: http://www.mplayerhq.hu/homepage/design7/dload.html
STEP2. 安裝codecs:
tar vjxf essential-20071007.tar.bz2
mv essential-20071007 /usr/lib/codes(or /usr/lib/codecs,this is used for.
/configure --with-codecsdir=/usr/lib/codecs/,
you must make the direct is correct,or you cant install the codes.)
chmod 644 /usr/lib/codes/*(or 777)
chown root.root /usr/lib/codes/*
unzip windows-essential-20071007.zip
mv windows-essential-20071007 /usr/lib/wincodes
(or /usr/lib/wincodecs,
this is usedfor ./configure --with-win32libdir=/usr/lib/wincodecs/,
you must make thedirect is correct,or you cant install the codes.)
chmod 644 /usr/lib/wincodes/*(or 777)
chown root.root /usr/lib/wincodes/*
STEP 3.安裝MPlayer:
tar vjxf MPlayer-1.0pre8.tar.bz2
cd MPlayer-1.0pre8
./configure --prefix=/usr/local/mplayer/
--enable-gui--enable-freetype --with-codecsdir=/usr/lib/codes/--with-win32libdir=
/usr/lib/wincodes/
--disable-gcc-checking--language=zh_CN
斷行符號後,它會讓你確認是否真的願意disable-gcc-checking ,斷行符號就行了。
make
make的時間可能比較長。建議你可以先去幹別的事。接下來我們就可以make install了。
make install
cd etc
cp example.conf /usr/local/mplayer/etc/config
cp codecs.conf /usr/local/mplayer/etc/
STEP 4.安裝字型
把你想用的字型(如 simsun.ttf ,windows系統的字型目錄下就有c:\windows\font\)放到/home/<你的使用者名稱>/.mplayer 下(root使用者放到/root/.mplayer下)並且改名為subfont.ttf .
拷貝(這裡假設您的simsun字型臨時放在 /root/ 目錄下,使用者為root):
cp /root/simsun.ttf /root/.mplayer/
改名:
mv /root/.mplayer/simsun.ttf /root/.mplayer/subfont.ttf
(如 果不做這一步運行時會報錯:New_Face failed. Maybe the font path is wrong.please supply teh text font ~/.mplayer/subfont.ttf.如果沒有~/.mplayer,只需要點功能表列的查看 ,選擇,顯示隱藏檔案即可。)
STEP 5.安裝皮膚
tar vjxf Orange-1.3.tar.bz2
mv Orange /usr/local/mplayer/share/mplayer/skins/
cd /usr/local/mplayer/share/mplayer/skins/
ln -s Orange default
官方網站有很多皮膚,下載以後,解壓,然後放到/usr/local/mplayer/share/mplayer/skins/ 下,然後右擊mplayer,選皮膚瀏覽,就可以看到你剛放進去的皮膚了。
STEP 6.運行
/usr/local/mplayer/bin/gmplayer
就可以運行程式了。你就可以在linux下聽歌看電影了。
問題:在./configure``````時,出現:Error: The GUI requires GTK devel packages (which were not found).
後安裝:
glib-devel-1.2.10-15.i386.rpm
gtk+-devel-1.2.10-33.i386.rpm
rpm -ivh 檔案名稱 --force --nodeps
又出現:
Error: The GUI requires GLib devel packages (which were not found)
其實認為lib已經安裝,還是找不到,可能路徑沒有指定。未解決!
參考:http://linux.chinaitlab.com/set/737712.html
http://space.itpub.net/16111659/viewspace-664795
···