红联Linux门户
Linux帮助

Slackware中MPlayer的手动安装方法

发布时间:2007-08-02 15:56:50来源:红联作者:weidrson
如果,你想用tgz包安装可以到http://www.linuxpackages.net/去下载,不过要下载两个包,一个是mplayer的包,还有一个解码器的包!如果运行后提示找到不到与wma\wmv有关的.ax文件,可以从WIN下拷贝过来。

1、到http://www.mplayerhq.hu/design7/news.html 下载所需要的包:

essential-20061022.tar.bz2  解码器包

MPlayer-1.0rc1.tar.bz2     mplayer软件包

Blue-1.6.tar.bz2        皮肤包

2、安装解码器:

tar xjvf essential-20061022.tar.bz2 解压包

mkdir /usr/lib/codecs 建立存放解码器的目录,如果有就不用建立了

cp essential/* /usr/lib/codecs/ 将刚刚解压的解码器全部拷贝到codecs中。注:是文件,而不是解压后的目录,也就是你在/usr/lib/codecs/中看到的是essential中的文件

chmod 644 /usr/lib/codecs/*

chown root.root /usr/lib/codecs/*

以上是设置相关仅限

3、安装mplayer软件包:

tar xjvf MPlayer-1.0rc1.tar.bz2 解压包

./configure --enable-gui --with-codecsdir=/usr/lib/codecs --with-win32libdir=/usr/lib/codecs --with-reallibdir=/usr/lib/codecs --disable-inet6 --cc=gcc32

因为,网页排版格式,所以这行你最好是复制过去。--enable-gui 如果要带图形界面就必需带些参数,--with-codecsdir 设置解码器的位置,--with-win32libdir 设置win相关的解码器的位置,--with-reallibdir 设置real(realplayer)相关的解码器的位置,--cc=gcc32 也可以用gcc,如果你的环境里没有gcc32,那就用gcc好了

make

make install

以上就编绎安装完成了

然后,将解压后MPlayer-1.0rc1 目录下面 codecs.conf gui.conf input.conf example.conf(我是拷贝所有.conf文件)拷到~/.mplayer 下,并mv example.conf config

4、安装皮肤包:

tar xjvf Blue-1.6.tar.bz2

mv Blue /usr/local/share/mplayer/skins/

ln -s Blue default

5、安装字幕等的相关字体:

把你想用的字体(如 simsun.ttf ,windows系统的字体目录下就有)拷贝到/home/<你的用户名>/.mplayer 下(root用户放到/root/.mplayer下)并且改名为subfont.ttf

OK,以上安装就完成了,你可以通过gmplayer命令运行了。
文章评论

共有 1 条评论

  1. Paul_phoenix 于 2008-12-01 15:46:21发表:

    这有个sh 可以参考一下,我是怎么安装的。
    mkdir mplayer-packages; cd mplayer-packages;
    wget http://www2.linuxpackages.net/packages/Slackware-11.0/ken/a52dec-0.7.4-i486-1kjz.tgz
    wget http://www2.linuxpackages.net/packages/Slackware-12.0/Library/libmpcdec/libmpcdec-1.2.6-i486-1gds.tgz
    wget http://www2.linuxpackages.net/packages/Slackware-12.0/Library/libmpeg3/libmpeg3-1.7-i486-1gds.tgz
    wget http://www2.linuxpackages.net/packages/Slackware-12.0/Library/avifile/avifile-20071003-i486-1gds.tgz
    wget http://www2.linuxpackages.net/packages/Slackware-12.0/Library/mpeg2dec/mpeg2dec-0.4.1-i486-1gds.tgz
    wget http://www2.linuxpackages.net/packages/Slackware-12.0/Library/FAAC/faac-1.25-i486-1gds.tgz
    wget http://www2.linuxpackages.net/packages/Slackware-12.0/ken/mplayer-1.0rc1try3-i486-2kjz.tgz
    wget http://www2.linuxpackages.net/packages/Slackware-12.0/Library/faad2/faad2-2.6.1-i486-1wim.tgz
    wget http://www2.linuxpackages.net/packages/Slackware-12.0/ken/speex-1.2beta2-i486-1kjz.tgz
    wget http://www2.linuxpackages.net/packages/Slackware-12.0/ken/ffmpeg-20070622-i486-1kjz.tgz
    wget http://www2.linuxpackages.net/packages/Slackware-12.0/ken/twolame-0.3.10-i486-1kjz.tgz
    wget http://www2.linuxpackages.net/packages/Slackware-11.0/ken/jack-0.103.0-i486-1kjz.tgz
    wget http://www2.linuxpackages.net/packages/Slackware-12.0/Library/x264/x264-20070722-i686-1mfb.tgz
    wget http://www2.linuxpackages.net/packages/Slackware-12.0/ken/lame-3.97-i486-1kjz.tgz
    wget http://www2.linuxpackages.net/packages/Slackware-12.0/martijn/xmms-1.2.11-i486-1McD.tgz
    wget http://www2.linuxpackages.net/packages/Slackware-12.0/Library/LibDV/libdv-1.0.0-i486-1gds.tgz
    wget http://www2.linuxpackages.net/packages/Slackware-12.0/ken/xvidcore-1.1.3-i486-1kjz.tgz
    wget http://www2.linuxpackages.net/packages/Slackware-12.0/ken/mplayerplug-in-3.45-i486-1kjz.tgz
    wget http://www2.linuxpackages.net/packages/Slackware-12.0/Library/libdc1394/libdc1394-1.2.2-i486-1gds.tgz
    installpkg *.tgz
    wget http://www2.mplayerhq.hu/MPlayer/releases/codecs/all-20071007.tar.bz2
    tar xvjf all-20071007.tar.bz2; mv all-20071007/* /usr/lib/codecs; rm -rf all-20071007/
    cd ..
    echo "You can delete the mplayer-packages directory once you have tested to make sure your installation worked. Also, make sure that SAMBA is installed