QQ登录

只需一步,快速开始

 找回密码
 注册

QQ登录

只需一步,快速开始

查看: 822|回复: 7

编译GCC-3.4.3时出现的问题

[复制链接]
发表于 2006-4-29 11:52:43 | 显示全部楼层 |阅读模式
小弟在编译GCC-3.4.3时,在键入
[root@yblinux gcc-build]# ../gcc-3.4.3/configure 后报如下的错误
loading cache ./config.cache
checking host system type... i686-pc-linux-gnu
checking target system type... i686-pc-linux-gnu
checking build system type... i686-pc-linux-gnu
checking for a BSD compatible install... /usr/bin/install -c
../gcc-3.4.3/configure: line 2332: cc: command not found
*** The command 'cc -o conftest -g   conftest.c' failed.
*** You must set the environment variable CC to a working compiler.


config.log中的信息如下:
[root@yblinux gcc-build]# less config.log
This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.

configure:581: checking host system type
configure:602: checking target system type
configure:620: checking build system type
configure:675: checking for a BSD compatible install

请问这是怎么回事。我在baidu上没查到任何有用的信息。
 楼主| 发表于 2006-4-29 11:56:37 | 显示全部楼层
"cc: command not found "
我现在就在编译它,这不是个s循环吗?
回复

使用道具 举报

发表于 2006-4-29 13:30:54 | 显示全部楼层
如果你没有CC,那你又怎么编译呢?
回复

使用道具 举报

 楼主| 发表于 2006-4-29 14:18:51 | 显示全部楼层
cc就是GCC呀。
回复

使用道具 举报

发表于 2006-4-29 14:23:05 | 显示全部楼层
link cc to gcc
如果没有 gcc ,那就先找一个 rpm deb 什么的装好。
回复

使用道具 举报

 楼主| 发表于 2006-4-29 14:27:17 | 显示全部楼层
正在试ing,只是这样太麻烦了。因为依赖关系要装的包一串一串的,所以,想问下有没有什么简单的方法。
回复

使用道具 举报

发表于 2006-4-29 15:33:17 | 显示全部楼层
apt 或者 yum
回复

使用道具 举报

发表于 2006-4-29 18:54:58 | 显示全部楼层
[quote:56c69d42d7="Bluedata"]apt 或者 yum[/quote]
他不会配置yum阿
回复

使用道具 举报

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

本版积分规则

GMT+8, 2024-9-23 03:14 , Processed in 0.065833 second(s), 15 queries .

© 2021 Powered by Discuz! X3.5.

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