QQ登录

只需一步,快速开始

 找回密码
 注册

QQ登录

只需一步,快速开始

查看: 852|回复: 7

gcc求救.

[复制链接]
发表于 2003-6-17 18:06:26 | 显示全部楼层 |阅读模式
我前几天装东西的时候,好像说我的gcc是2.96,可能是版本不够高,不能装,所以我下载了一个gcc3.2,但是我装的时候提示说是bad version,不能装,请问哪里有能用的gcc,公社有是有,但是那是针对redhat7.3版本的,我的是redhat9.0,那有下载呢?感谢先!
发表于 2003-6-17 18:10:51 | 显示全部楼层
基本不是gcc问题!
你装什么软件时提示gcc版本不够?软件安装跟gcc没什么关系。但两个相倚赖的软件,一个用gcc 2.96编译,一个用gcc 其它版本编译这就有可能出问题了。
回复

使用道具 举报

 楼主| 发表于 2003-6-17 18:38:46 | 显示全部楼层
装mplayer的时候,我没仔细看,我再试一下吧
回复

使用道具 举报

 楼主| 发表于 2003-6-17 18:45:25 | 显示全部楼层
就是这样的:
[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.
回复

使用道具 举报

发表于 2003-6-17 21:03:38 | 显示全部楼层
[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下载。
回复

使用道具 举报

发表于 2003-6-17 23:04:26 | 显示全部楼层
rh9自带了gcc3.x,你用它的软件包管理器将开发工具那里的东西更新一下就可以了
rh8和9好像都自带了两个gcc,一个是gcc2.96(臭名远播?),另一个是gcc3.x
回复

使用道具 举报

 楼主| 发表于 2003-6-17 23:11:20 | 显示全部楼层
怎样卸载gcc2.96呢?
回复

使用道具 举报

发表于 2003-6-18 19:24:49 | 显示全部楼层
不用啊,你用软件包管理器更新一下开发环境,就自动装上gcc3了,至于gcc2.96,不删也没所谓,反正mplayer检测到gcc3就不用gcc2.96了
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

GMT+8, 2024-10-1 23:50 , Processed in 0.039552 second(s), 16 queries .

© 2021 Powered by Discuz! X3.5.

快速回复 返回顶部 返回列表