总结:linux下安装mplayer详细步骤和问题解决


http://sourceforge.net
  --->下载mplayer

http://www.mplayerhq.hu/design7/news.html

在谷歌里搜yasm下载yasm

 

总体步骤

yasm--》mplayer--》skin

 

编译安装详细步骤

1.下载yasm

先解压文件tar -xf yasm-1.2.0.tar.gz
进入目录 cd yasm-1.2.0

标准三步安装好
./configure
 make
make install

 

2.解压mplayer,进入目录
第一步:
[root@teacher MPlayer-1.1]# ./configure --enable-gui
***
注意:
若执行上条命令出错,可以尝试用以下命令来安装所需的图形界面文件
[root@station6 MPlayer-1.1]# yum install gnome-*
**
第二步:
make

第三步:
make install

安装好了?哈哈,这时候打开播放器能正常运行了么?不好意思,你将只会看到这个:

 


所以呢,你必须还要执行下面的操作,安装skin,要有耐心哦~~就快好了


3.安装skin
[root@station6 skin]#  ls
Blue-1.8.tar.bz2  standard-1.9.tar.bz2
[root@station6 skin]# tar xf Blue-1.8.tar.bz2
[root@station6 skin]#  ls
Blue  Blue-1.8.tar.bz2  standard-1.9.tar.bz2
[root@station6 skin]# cp Blue /usr/local/share/mplayer/skins/  -r
[root@station6 skin]# cd /usr/local/share/mplayer/skins/
[root@station6 skins]# ls
Blue
[root@station6 skins]#mv Blue/  default   改名,注意必须改为default
[root@station6 skins]#

####################################################################



第二次安装出现的错误情况分享:


下载所需要的软件

编译安装mplayer步骤:

第一步: yasm

[root@localhost software]# ls

cmatrix-1.2a.tar.gz  mplayer  ntfs-3g_ntfsprogs-2011.4.12.tgz  唐到此一游

[root@localhost software]#

[root@localhost software]# cd mplayer/

[root@localhost mplayer]# ls

MPlayer-1.1.tar.xz  skin  tiexuedanxin.mp3  xiyou.rmvb  yasm-1.2.0.tar.gz

[root@localhost mplayer]#tar -xf  yasm-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.xz  tiexuedanxin.mp3  yasm-1.2.0

skin                xiyou.rmvb        yasm-1.2.0.tar.gz

[root@localhost mplayer]# tar  xf MPlayer-1.1.tar.xz

[root@localhost mplayer]# ls

MPlayer-1.1         skin              xiyou.rmvb  yasm-1.2.0.tar.gz

MPlayer-1.1.tar.xz  tiexuedanxin.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.bz2  standard-1.9.tar.bz2

[root@localhost skin]# tar xf Blue-1.8.tar.bz2

[root@localhost skin]#  ls

Blue  Blue-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装了所有的,等了好久。不过成功了,还是感觉不错,嘿嘿!还是老师聪明。


指导老师:双星科技---冯老师


  • 2
    点赞
  • 11
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值