关于ubuntu安装mplayer网上已经有很多的文章,我也装的时候也参照了一下下面两个链接。这篇文章主要是为了记录我安装的时候遇到的问题及解决办法。
http://linux.chinaunix.net/docs/2008-01-24/4725.shtml http://tech.ccidnet.com/art/3089/20090106/1652395_1.html
安装有五个步骤,我下载了Subversion snapshot的源文件,以及其他几个文件之后,
drwxr-xr-x 2 root root 4096 2009-02-11 23:22 codecs
drwxr-xr-x 2 root root 4096 2007-10-07 22:07 wincodecs
Check “configure.log” if you do not understand why it failed.
解决办法: google了一下发现我需要libavcodec这个东东,但是在我检查了一下明明以及装过了的,同时发现还有下面这个包没有装过,看了一下这个包的说明,猜想了一下觉得应该把它装上,这里要说的说ubuntu真的很方便,这个(Synaptic Package Manager) 新立得包管理器简直就是一个神器啊!在Synaptic Package Manager里选中这个包,它会把depend的其他包都自动下载安装,爽死了。
libavcodec-dev
development files for libavcodec
This is the codec library from the ffmpeg project. It supports most existing
encoding formats (MPEG, DivX, MPEG4, AC3, DV…).
This package contains the header files and static libraries needed to
compile applications or shared objects that use libavcodec.
Check “configure.log” if you do not understand why it failed.
解决办法: 继续google发现这次的解决办法是要安装下面两个包,还是用Synaptic Package Manager
libgladeui-1-7
GTK+ User Interface Build core library
libgladeui-1-dev
GTK+ User Interface Build core library (development files)
Glade is a RAD tool to enable quick and easy development of user
interfaces for the GTK+ 2 toolkit.
Glade is, since its “3.0″ major version, highly modular, and composed
of widgets which can be used by other applications to integrate
functionality similar to the one provided by the Glade application
itself.
hao@hao-desktop:~/downloaded/mplayer-export-2009-02-11$ sudo make install
[sudo] password for hao:
install -d /usr/local/mplayer//bin /usr/local/mplayer//etc/mplayer /usr/local/mplayer//lib
install -m 755 -s mplayer /usr/local/mplayer//bin
ln -sf mplayer /usr/local/mplayer//bin/gmplayer
install -d /usr/local/mplayer//share/mplayer/skins /usr/local/mplayer//share/pixmaps /usr/local/mplayer//share/applications
install -m 644 etc/mplayer.xpm /usr/local/mplayer//share/pixmaps/
install -m 644 etc/mplayer.desktop /usr/local/mplayer//share/applications/
install -m 755 -s mencoder /usr/local/mplayer//bin
install -d /usr/local/mplayer//share/man/zh_CN/man1
install -m 644 DOCS/man/zh_CN/mplayer.1 /usr/local/mplayer//share/man/zh_CN/man1/
cd /usr/local/mplayer//share/man/zh_CN/man1 && ln -sf mplayer.1 mencoder.1
hao@hao-desktop:~/downloaded/mplayer-export-2009-02-11$
最后还需要安装字体和皮肤,很简单的活,没遇到问题。
Q:ubuntu如何安装deb格式的包?