免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 629 | 回复: 0
打印 上一主题 下一主题

Rhel 5.2 常用软件安装(2) mplayer篇 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2008-06-23 10:17 |只看该作者 |倒序浏览
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、http://nchc.dl.sourceforge.net/sourceforge/mplayerplug-in/mplayerplug-in-3.50.tar.gz
   2、http://releases.mozilla.org/pub/mozilla.org/xulrunner/releases/1.8.0.4/sdk/gecko-sdk-i686-pc-linux-gnu-1.8.0.4.tar.bz2
   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/
成功!

本文来自ChinaUnix博客,如果查看原文请点:http://blog.chinaunix.net/u1/41660/showart_1008882.html
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP