In Linux, the installation of Mplayer takes one night. Most of the installation methods on the Internet may cause errors of different degrees, this is because you choose different system versions and install software integrity. I am using the Red Linux 4 Enterprise Edition. Now I will introduce my installation methods:
(1) first download some software
MPlayer-1.0pre7.tar.bz2
Blue-1.7.tar.bz2
All-20061022.tar.bz2
Windows-all-20061022.zip
Gb2312-ming.tar.bz2
(2) install 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
# Music Video Streaming windows-all-20061022/usr/local/lib/wincodecs
# Chmod 644/usr/local/lib/wincodecs /*
Modify/etc/ld. so. conf and add/usr/local/lib to this file.
Then ldconfig
(3) install the mplayer main program
# Tar vjxf MPlayer-1.0pre7.tar.bz2
# Cd MPlayer-1.0pre7
Next, configure and prepare for compilation. About the configuration first to determine whether several rpm packages installed, glib-devel-1.2.10-15.i386.rpm, gtk +-devel-1.2.10-33.i386.rpm, if not installed, you can download the installation online, confirm that the above packages have been installed, you can start configuring and compiling.
#. /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) install fonts
# 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) install skin
# 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) Run gmplayer
The following error occurs:
"New_Face faild. Maybe the font path is wrong. please supply the text font file .(~ /. Mplayer/subfont. ttf )."
The solution is to copy a font to the font file to. mplayer/and change the file name to subfont. ttf.
Note: The/root/. mplayer file is hidden. Just display it.
Related Articles]
- Make Mplayer a universal player in Linux
- To compile and install Mplayer in Fedora
- Detailed process of mplayer installation in FC4