下载所需要的软件
编译安装mplayer步骤:
第一步:yasm
[root@localhost software]# ls
cmatrix-1.2a.tar.gzmplayer ntfs-3g_ntfsprogs-2011.4.12.tgz 唐到此一游
[root@localhost software]#
[root@localhost software]# cd mplayer/
[root@localhost mplayer]# ls
MPlayer-1.1.tar.xzskin tiexuedanxin.mp3 xiyou.rmvb yasm-1.2.0.tar.gz
[root@localhost mplayer]#tar -xfyasm-1.2.0.tar.gz
[root@localhost mplayer]# cd yasm-1.2.0
然后标准三步安装好
./configure
make
make install
第二步:MPlayer
[root@localhost mplayer]# ls
MPlayer-1.1.tar.xztiexuedanxin.mp3 yasm-1.2.0
skinxiyou.rmvb yasm-1.2.0.tar.gz
[root@localhost mplayer]# tar xf MPlayer-1.1.tar.xz
[root@localhost mplayer]# ls
MPlayer-1.1skin xiyou.rmvb yasm-1.2.0.tar.gz
MPlayer-1.1.tar.xztiexuedanxin.mp3 yasm-1.2.0
[root@localhost mplayer]# cd MPlayer-1.1
[root@localhost MPlayer-1.1]#./configure --enable-gui不能正常安装
[root@localhost MPlayer-1.1]# yum install gnome*安装GUI组件
[root@localhost MPlayer-1.1]#./configure --enable-gui
还有错误:
Checking for GTK version ...
Error: The GUI requires GTK devel packages (which were not found).
Check "config.log" if you do not understand why it failed.
还需要安装GTK组件,自己尝试了下
[root@localhost MPlayer-1.1]# yum install*gtk*
还是有同样错误:
Checking for GTK+ version ... GTK-2 devel packages were not found, trying GTK 1.2
Checking for GTK version ...
Error: The GUI requires GTK devel packages (which were not found).
Check "config.log" if you do not understand why it failed.
最后用极端的方法,安装了所有的安装软件
[root@localhost MPlayer-1.1]# yum install *devel*
[root@localhost MPlayer-1.1]# make
[root@localhost MPlayer-1.1]# make install
这样之后的安装就跟第一次安装的情况相同了。
第三步:安装skin
[root@localhost skin]# ls
Blue-1.8.tar.bz2standard-1.9.tar.bz2
[root@localhost skin]# tar xf Blue-1.8.tar.bz2
[root@localhost skin]# ls
BlueBlue-1.8.tar.bz2 standard-1.9.tar.bz2
[root@localhost skin]# cp Blue /usr/local/share/mplayer/skins/-r
[root@localhost skin]# cd /usr/local/share/mplayer/skins/
[root@localhost skins]# ls
Blue
[root@localhost skins]#mv Blue/default 改名,注意必须改为default
第四步:加载声卡驱动
[root@localhost MPlayer-1.1.1]# modprobe snd_pcm_oss
这次这个问题解决的很是揪心啊,为了一个GTK装了所有的,等了好久。不过成功了,还是感觉不错,嘿嘿!还是老师聪明。
指导老师:双星科技---冯老师