就是这样的:
[root@localhost mplayer]# ./configure
Detected operating system: Linux
Detected host architecture: i386
Checking for gcc 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 ... not found
*** Please downgrade/upgrade C compiler to gcc-2.95.x or gcc-3.x version! ***
You are using a different compiler than ours. We do not have the time to make
sure everything works with compilers than the one we use. Use either use the
same compiler as ours, or use --disable-gcc-checking but DO *NOT* REPORT BUGS
unless you can reproduce them after recompiling with 2.95.x or 3.0.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 (but minimum 2.96-85) and try again.
If the problem still exists, try with gcc 3.0.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/gcc-2.96-3.0.html ***
Error: Bad gcc version
Check configure.log if you do not understand why it failed.
[quote:7150eff6cf="great201"]就是这样的:
[root@localhost mplayer]# ./configure
Detected operating system: Linux
Detected host architecture: i386
Checking for gcc 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 ... not found
*** Please downgrade/upgrade C compiler to gcc-2.95.x or gcc-3.x version! ***
You are using a different compiler than ours. We do not have the time to make
sure everything works with compilers than the one we use. Use either use the
same compiler as ours, or use --disable-gcc-checking but DO *NOT* REPORT BUGS
unless you can reproduce them after recompiling with 2.95.x or 3.0.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 (but minimum 2.96-85) and try again.
If the problem still exists, try with gcc 3.0.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/gcc-2.96-3.0.html ***
Error: Bad gcc version
Check configure.log if you do not understand why it failed.[/quote]
因为在这个rpm的spec文件里面定义了只能使用2.95或者3.x的gcc,而你的gcc是2.96,所以失败了,建议你安装gcc 3.2,卸载2.96,这根本就是redhat的一个超级笑话。
可以用apt4rpm升级,到apt.freshrpms.net下载。