- 【LINUX】MPlayer详细安装步骤(RHELAS 4)
下载路径:http://www.mplayerhq.hu/MPlayer/releases/ src: MPlayer-1.0pre8.tar.bz2 codecs:all-20061022.tar.bz2 essential-20061022.tar.bz2 #
tar jxvf all-20061022.tar.bz2 #
mv all-20061022 /usr/lib/codecs #
chmod 644 /usr/lib/codecs/* #
chown root.root /usr/lib/codecs/* #
tar jxvf essential-20061022.tar.bz2 #
mv essential-20061022 /usr/lib/wincodecs #
chown root.root /usr/lib/wincodecs/* #
chmod 644 /usr/lib/wincodecs/* #
tar jxvf MPlayer-1.0pre8.tar.bz2 #
./configure --enable-gui --enable-largefiles --enable-menu --prefix=/usr/local/mplaer
--with-codecsdir=/usr/lib/codecs/ --with-win32libdir=/usr/lib/wincodecs/ --confdir=/etc/mplayer --cc=gcc32 ===========================================================================================
=参数说明:
=
= ./configure #详细说明见./configure --help
= --prefix=/usr/local/mplayer/ #安装路径
= --enable-gui #如果你只在命令下用可以不要这个,相信是不会的
= \ #方便以后调整字体
= --with-codecsdir=/usr/lib/codesc/ #我们把下载的插件拷贝到这里
= --with-win32libdir=/usr/lib/wincodecs/ #指定win32代码目录
=========================================================================================== 时间较长。
特别注意: mplayer的源代码文件夹应放在EXT2/EXT3的分区下,如果放在FAT/NTFS分区会出现错误! # tar xjvf 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 # tar vjxf Blue-1.4.tar.bz2
# mv Blue /usr/local/mplayer/share/mplayer/Skin/
# cd /usr/local/mplayer/share/mplayer/Skin/
# ln -s Blue default 名称: MPlayer
命令: /usr/local/mplayer/bin/gmplayer 也可以在终端用/usr/local/mplayer/bin/gmplayer 启动. (六) 故障分析及其解决
安装完后,我们启动MPlayer,有可能会出现如下这样的错误: "New_Face faild. Maybe the font path is wrong. please supply the text font file. ( ~/.mplayer/subfont.ttf )."
这时候我们用系统自带的字体来代替.
# cd /usr/share/fonts/chinese/TrueType找其中一个字体文件复制到当前用户目录的 .mplayer/ 目录下
# cp gbsn00lp.ttf ~/.mplayer/subfont.ttf 这样就解决了字体问题了. 卸载mplayer只需在刚刚由MPlayer-1.0pre8try2.tar.bz2解压出来的MPlayer-1.0pre8ry2目录下运行 make uninstall即可。所以,这个解压出来的文件夹不要删除,如果删除了,卸载的时候也可以到安装目录下直接删除,linux下没有注册表的概念放心删除! 1. 安装的最初的配置是最重要的.选项并不是越多越好的.只要可以实现播放各种格式,包括rmvb和windows下各种媒体类型就行了.因为windcodecs和codecs已经包含了常用的格式了. 2. 要多留意在./configure过程中的错误或者没有符合的依赖关系.有时候无法进行make.就是在这一步出了问题.如果不能进行make,一般有提示的,其日志在config.log中.还有一个办法,就是通过管道输出到文本文件中,可以了解到安装的过程. 如 # ./configure | tee tmp.txt .这样就可以分析错误了. 3. 在make的安装过程中,往往有好多警告,这并不是错误,而是编写程序的人没有注意到的问题,如变量定义不恰当等,并不影响程序的安装. 4. 如果安装过程中不能顺利进行,要想还原到最初源代码状态. 使用命令 # make distclean 清除之前的配置,再进行新的配置. |