红联Linux门户
Linux帮助

FC6下安装Mplayer所遇到的问题,请高手指教!

发布时间:2007-03-28 17:42:54来源:红联作者:cambrianhl
开始安装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 编辑 ]
文章评论

共有 82 条评论

  1. 201.231.76.* 于 2007-04-17 20:34:02发表:

    http://66324aff00b861394263d1c2df8a4a35-t.ghoiou0.info 66324aff00b861394263d1c2df8a4a35 http://66324aff00b861394263d1c2df8a4a35-b1.ghoiou0.info 66324aff00b861394263d1c2df8a4a35 http://66324aff00b861394263d1c2df8a4a35-b3.ghoiou0.info 196c3da0ce3e9a23267e7eab02ad2b11

  2. cambrianhl 于 2007-03-29 10:28:53发表:

    真心感谢大家的指点~!
    谢谢!

  3. beyondfly 于 2007-03-28 22:15:01发表:

    哥们,要不着这么麻烦,yum -y install mplayer mplayer-gui mpalyer-skins,
    然后你再去下载win32codecs ,下载以后解压到 /usr/llibs/codecs,就可以

  4. Summerserenity 于 2007-03-28 21:08:07发表:

    GCC4.1.1不能用,一定要指定gcc32或gcc34,不指定就会默认安装GCC4.1.1。

  5. xackw 于 2007-03-28 20:42:53发表:

    很简单,你的GCC4.1.1安装不正确,系统提示GCC4.1.1是坏的,然后系统开始找以前的版本,3.4,3.3,3.2,3.1,3.0这些版本都没有找到,安装失败!建议重新安装GCC!