Chinaunix首页 | 论坛 | 博客
  • 博客访问: 588851
  • 博文数量: 187
  • 博客积分: 10025
  • 博客等级: 上将
  • 技术积分: 2990
  • 用 户 组: 普通用户
  • 注册时间: 2007-06-18 17:40
文章分类

全部博文(187)

文章存档

2010年(1)

2009年(23)

2008年(163)

我的朋友

分类: LINUX

2008-06-23 10:17:57

Rhel 5.2 常用软件安装(2) mplayer篇
 5、Mplayer的安装
      最重要的一步,先安装compat-gcc-34,否则使用默认的gcc 4.1.2编译,到时候会欲哭无泪,说什么过度使用编译器优化之类的警告而罢工。安装完成确认一下:

[root@superman tmp]# rpm -aq | grep gcc
gcc-c++-4.1.2-42.el5
compat-gcc-34-g77-3.4.6-4
compat-libgcc-296-2.96-138
compat-gcc-34-3.4.6-4
libgcc-4.1.2-42.el5
gcc-4.1.2-42.el5
gcc-gfortran-4.1.2-42.el5
compat-gcc-34-c++-3.4.6-4


  OK,没有问题!
  下一步,下载源代码和相关库、skin文件,列表在这:

[root@superman tmp]# ls
all-20071007.tar.bz2 MPlayer-1.0rc2.tar.bz2
essential-20071007.tar.bz2 standard-1.9.tar.bz2


 不过我还是没有分清楚all-20071007.tar.bz2和essential-20071007.tar.bz2这两个文件中所带的解码器有何不同,感觉有的重复,依葫芦画瓢吧,先安装解码器


[root@superman tmp]#tar -jxvf all-20071007.tar.bz2
[root@superman tmp]#mv all-20071007 /usr/lib/win32
[root@superman tmp]# chmod 755 /usr/lib/win32/*
[root@superman tmp]# tar -jxvf essential-20071007.tar.bz2
[root@superman tmp]# mv essential-20071007 /usr/lib/codecs
[root@superman tmp]# chmod 755 /usr/lib/codecs/*


进入config、make、make install 三步走:
先查看一下配置说明,很重要的


[root@superman MPlayer-1.0rc2]# ./configure --help
Usage: ./configure [OPTIONS]...

Configuration:
  -h, --help display this help and exit

Installation directories:
  --prefix=DIR prefix directory for installation [/usr/local]
  --bindir=DIR directory for installing binaries [PREFIX/bin]
  --datadir=DIR directory for installing machine independent
                         data files (skins, etc) [PREFIX/share/mplayer]
  --mandir=DIR directory for installing man pages [PREFIX/share/man]
  --confdir=DIR directory for installing configuration files
                         [PREFIX/etc/mplayer]
  --libdir=DIR directory for object code libraries [PREFIX/lib]
  --codecsdir=DIR directory for binary codecs [LIBDIR/codecs]
  --win32codecsdir=DIR directory for Windows DLLs [LIBDIR/codecs]
  --xanimcodecsdir=DIR directory for XAnim codecs [LIBDIR/codecs]
  --realcodecsdir=DIR directory for RealPlayer codecs [LIBDIR/codecs]

Optional features:
  --disable-mencoder disable MEncoder (A/V encoder) compilation [enable]
  --disable-mplayer disable MPlayer compilation [enable]
  --enable-gui enable GMPlayer compilation (GTK+ GUI) [disable]
  --enable-gtk1 force using GTK 1.2 for the GUI [disable]
  --enable-largefiles enable support for files > 2GB [disable]
  --enable-linux-devfs set default devices to devfs [disable]
  --enable-termcap use termcap database for key codes [autodetect]
  --enable-termios use termios database for key codes [autodetect]
  --disable-iconv disable iconv for encoding conversion [autodetect]
  --disable-langinfo do not use langinfo [autodetect]
  --enable-lirc enable LIRC (remote control) support [autodetect]
  --enable-lircc enable LIRCCD (LIRC client daemon) input [autodetect]
  --enable-joystick enable joystick support [disable]
  --enable-apple-remote enable Apple Remote input (Mac OS X only) [autodetect]
  --disable-vm disable X video mode extensions [autodetect]
  --disable-xf86keysym disable support for multimedia keys [autodetect]
  --enable-radio enable radio interface [disable]
  --enable-radio-capture enable radio capture (through PCI/line-in) [disable]
  --disable-radio-v4l2 disable Video4Linux2 radio interface [autodetect]
  --disable-radio-bsdbt848 disable BSD BT848 radio interface [autodetect]
  --disable-tv disable TV interface (TV/DVB grabbers) [enable]
  --disable-tv-v4l1 disable Video4Linux TV interface [autodetect]
  --disable-tv-v4l2 disable Video4Linux2 TV interface [autodetect]
  --disable-tv-bsdbt848 disable BSD BT848 interface [autodetect]
  --disable-tv-teletext disable TV teletext interface


作为一名初学者,我曾被网上好多不同版本的配置文件所带参数搞得晕头转向,有了上面这个,一目了然!

[root@superman MPlayer-1.0rc2]# ./configure --codecsdir=/usr/lib/codecs/ --win32codecsdir=/usr/lib/win32/ --enable-gui --enable-largefiles --cc=/usr/bin/gcc34 --language=zh_CN
[root@superman MPlayer-1.0rc2]# make

[root@superman MPlayer-1.0rc2]# make install


安装skin

[root@superman tmp]# tar -jxvf standard-1.9.tar.bz2
[root@superman tmp]# mv standard /usr/local/share/mplayer/skins/default

大功告成!再慢慢微调吧!

顺便把flash的插件也安上

[root@superman tmp]# tar -xvf install_flash_player_9_linux.tar.gz
[root@superman tmp]# cp ./install_flash_player_9_linux/libflashplayer.so /usr/lib/firefox/
plugins/


安装mplayplugins插件需要下载的文件:
   1、
   2、
   3、

[root@superman mplayerplug-in]# tar -xzvf mplayerplug-in-3.50.tar.gz
[root@superman mplayerplug-in]# cd mplayerplug-in
[root@superman mplayerplug-in]# tar -jzvf gecko-sdk-i686-pc-linux-gnu-1.8.0.4.tar.bz2
[root@superman mplayerplug-in]# ./configure --with-gecko-sdk=../gecko-sdk
[root@superman mplayerplug-in]# make
[root@superman mplayerplug-in]# cp mplayerplug-in.so /usr/lib/firefox/plugins/
[root@superman mplayerplug-in]# cp mplayerplug-in.xpt /usr/lib/firefox/components/

 成功!
阅读(435) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~