开始安装MPlayer
a.解压安装解码器
tar xjvf essential-20040704.tar.bz2
mv essential-20040704/ /usr/lib/codecs
将所有的解码文件移动到/usr/lib/codecs目录下
b.编译安装MPlayer
tar MPlayer-1.0pre7try2.tar.bz2
重命名为MPlayer,并进入该目录
cd MPlayer
./configure --enable-gui --with-codecsdir=/usr/lib/codecs --with-win32libdir=/usr/lib/codecs --with-reallibdir=/usr/lib/codecs --with-xanimlibdir=/usr/lib/codecs --disable-inet6 --language=zh_CN
make
make install
cd etc/
cp codecs.conf gui.conf input.conf sample.conf ~/.mplayer/
mv ~/.mplayer/sample.conf ~/.mplayer/config
我是按照这个步骤来执行安装过程的 ,可是运行到这一步的时候,./configure --enable-gui --with-codecsdir=/usr/lib/codecs --with-win32libdir=/usr/lib/codecs --with-reallibdir=/usr/lib/codecs --with-xanimlibdir=/usr/lib/codecs --disable-inet6 --language=zh_CN
执行完命令,终端显示的回显为:
Detected operating system: Linux
Detected host architecture: i386
Checking for cc version ... 4.1.1, bad
Checking for gcc version ... 4.1.1, bad
Checking for gcc-3.4 version ... not found
Checking for gcc-3.3 version ... not found
Checking for gcc-3.2 version ... not found
Checking for gcc-3.1 version ... not found
Checking for gcc3 version ... not found
Checking for gcc-3.0 version ... not found
Checking for cc version ... 4.1.1, bad
*** Please downgrade/upgrade C compiler to version gcc-2.95.x or gcc-3.x! ***
You are not using a supported compiler. We do not have the time to make sure
everything works with compilers other than the ones we use. Use either the
same compiler as we do, or use --disable-gcc-checking but DO *NOT* REPORT BUGS
unless you can reproduce them after recompiling with a 2.95.x or 3.x version!
Note for gcc 2.96 users: Some versions of this compiler are known to miscompile
mplayer and lame (which is used for mencoder). If you get compile errors,
first upgrade to the latest 2.96 release (minimum 2.96-85) and try again.
If the problem still exists, try with gcc 3.x (or 2.95.x) *BEFORE* reporting
bugs!
GCC 2.96 IS NOT AND WILL NOT BE SUPPORTED BY US !
*** For details please read DOCS/HTML/en/users-vs-dev.html ***
Error: Bad gcc version
Check "configure.log" if you do not understand why it failed.
按照说明的,我打开了 configure.log进行查看,发现了如下提示:
============ Checking for cc version ============
Result is: 4.1.1, bad
##########################################
============ Checking for gcc version ============
Result is: 4.1.1, bad
##########################################
============ Checking for gcc-3.4 version ============
Result is: not found
##########################################
============ Checking for gcc-3.3 version ============
Result is: not found
##########################################
============ Checking for gcc-3.2 version ============
Result is: not found
##########################################
============ Checking for gcc-3.1 version ============
Result is: not found
##########################################
============ Checking for gcc3 version ============
Result is: not found
##########################################
============ Checking for gcc-3.0 version ============
Result is: not found
##########################################
============ Checking for cc version ============
Result is: 4.1.1, bad
##########################################
似乎是 cc和 gcc的版本问题,请问我现在该如何解决这个问题 ?请高手赐教~
[ 本帖最后由 cambrianhl 于 2007-3-28 17:48 编辑 ]


Summerserenity 于 2007-03-28 20:04:32发表:
第一个命令中没有gcc内容,没编绎好,也就没装好。网上再找一下,这方面的文章很多的。我编绎过,给你参考:
./configure --enable-gui --enable-largefiles --enable-menu --prefix=/usr/local/lib --with-codecsdir=/usr/local/lib/codecs/ --with-win32libdir=/usr/lib/local/win32/ --confdir=/etc/mplayer --cc=gcc34
make
make install
最好是gcc32, 假如你电脑中只有gcc34也可以。安装的路径、编码的路径要搞清。你快成功了。重新来过时,原来解压后的Mplayer目录没用了,应删除。重新解压。
cambrianhl 于 2007-03-28 19:45:45发表:
自己顶上去。。。希望高手能指教下。