gcc求救.
我前几天装东西的时候,好像说我的gcc是2.96,可能是版本不够高,不能装,所以我下载了一个gcc3.2,但是我装的时候提示说是bad version,不能装,请问哪里有能用的gcc,公社有是有,但是那是针对redhat7.3版本的,我的是redhat9.0,那有下载呢?感谢先! 基本不是gcc问题!你装什么软件时提示gcc版本不够?软件安装跟gcc没什么关系。但两个相倚赖的软件,一个用gcc 2.96编译,一个用gcc 其它版本编译这就有可能出问题了。 装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. 就是这样的:
# ./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.
因为在这个rpm的spec文件里面定义了只能使用2.95或者3.x的gcc,而你的gcc是2.96,所以失败了,建议你安装gcc 3.2,卸载2.96,这根本就是redhat的一个超级笑话。
可以用apt4rpm升级,到apt.freshrpms.net下载。 rh9自带了gcc3.x,你用它的软件包管理器将开发工具那里的东西更新一下就可以了
rh8和9好像都自带了两个gcc,一个是gcc2.96(臭名远播?),另一个是gcc3.x 怎样卸载gcc2.96呢? 不用啊,你用软件包管理器更新一下开发环境,就自动装上gcc3了,至于gcc2.96,不删也没所谓,反正mplayer检测到gcc3就不用gcc2.96了
页:
[1]