sccdyuebo 发表于 2006-4-29 11:52:43

编译GCC-3.4.3时出现的问题

小弟在编译GCC-3.4.3时,在键入
# ../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中的信息如下:
# 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上没查到任何有用的信息。

sccdyuebo 发表于 2006-4-29 11:56:37

"cc: command not found "
我现在就在编译它,这不是个s循环吗?

saub 发表于 2006-4-29 13:30:54

如果你没有CC,那你又怎么编译呢?

sccdyuebo 发表于 2006-4-29 14:18:51

cc就是GCC呀。

Bluedata 发表于 2006-4-29 14:23:05

link cc to gcc
如果没有 gcc ,那就先找一个 rpm deb 什么的装好。

sccdyuebo 发表于 2006-4-29 14:27:17

正在试ing,只是这样太麻烦了。因为依赖关系要装的包一串一串的,所以,想问下有没有什么简单的方法。

Bluedata 发表于 2006-4-29 15:33:17

apt 或者 yum

niuzilu 发表于 2006-4-29 18:54:58

apt 或者 yum
他不会配置yum阿
页: [1]
查看完整版本: 编译GCC-3.4.3时出现的问题