LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 2988|回复: 21

gcc版本太高了

[复制链接]
发表于 2005-11-21 01:19:37 | 显示全部楼层 |阅读模式
编译mplayer的时候,说gcc4版本太高了。下了gcc-3.3的源码包,但是装不上,好像是说gcc4存在了,有冲突什么的,应该怎么装呢?还是把gcc4卸掉?
发表于 2005-11-21 01:35:06 | 显示全部楼层
gcc4怎么装的?如果是编译,手动删
如果是包,YaST去除有4的源把安装盘加源,选gcc无条件更新
回复 支持 反对

使用道具 举报

 楼主| 发表于 2005-11-21 01:41:19 | 显示全部楼层
gcc4是装系统的时候选上的。
回复 支持 反对

使用道具 举报

发表于 2005-11-21 02:00:59 | 显示全部楼层
如果是系统那应该是34都装了吧
回复 支持 反对

使用道具 举报

 楼主| 发表于 2005-11-21 02:46:21 | 显示全部楼层
那编译./configure的时候要加什么呢?
回复 支持 反对

使用道具 举报

发表于 2005-11-21 08:27:59 | 显示全部楼层
Before you begin to compile, suggest you to verify the version of gcc in your system:

$whereis gcc

If you have several versions, then you should check the correct version to be used, e.g.

/usr/bin/gcc -v

/opt/bin/gcc -v

...

Assume gcc-3.3 is located at /opt/bin, then you may use:

CC=/opt/bin/gcc ./configure ......
回复 支持 反对

使用道具 举报

 楼主| 发表于 2005-11-21 11:08:42 | 显示全部楼层
But it seems there is only one version in my SuSE.I wonder how can i install another version such as gcc3.3 ,since i can't do the "./configure->make->make install" job to install the gcc-3.3 version.
回复 支持 反对

使用道具 举报

发表于 2005-11-21 11:54:38 | 显示全部楼层
Not sure if YaST allows you to install gcc-3.3 on top of gcc-4, if not, then you may probably need to compile and install gcc-3.3 manually to other directory, say, /opt.
回复 支持 反对

使用道具 举报

发表于 2005-11-21 12:00:21 | 显示全部楼层
if you want to build mplayer from scratch, why not check it out from cvs repository which is gcc4 compatible.
回复 支持 反对

使用道具 举报

 楼主| 发表于 2005-11-21 12:12:15 | 显示全部楼层
Yep,YaST does not allow me to do that.So i downloaded the gcc-3.3.tar.gz package,and tried to install it manully.While,it failed.It seems that it can't get through the "make" progress because of the confliction by gcc4.0.
Can you specify the manul installation .Thanks a lot!
回复 支持 反对

使用道具 举报

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

本版积分规则

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