您的位置:首页 > 运维架构 > Linux

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

2013-06-02 22:30 633 查看
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装了所有的,等了好久。不过成功了,还是感觉不错,嘿嘿!还是老师聪明。

指导老师:双星科技---冯老师
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: 
相关文章推荐