请教如何解决:安装GCC-4.6.3错误(找不到cc编译器)

weixin_38067747 2012-03-14 10:18:41

1. Linux版本(安装在虚拟机上)
#uname -a
Linux ahost 2.6.18-194.e15 #1 SMP Tue Mar 16 21:52:39 EDT 2010 x86_64  x86_64  x86_64  GNU/Linux

2. gcc版本
gcc-4.6.3.tar.gz
直接解包展开

3. 安装配置gcc
#../gcc-4.6.3/configure --prefix=/home/gcc-4.6.3

****** 出现找不到cc编译器错误!!!

查看 config.log 文件:

This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.

It was created by configure, which was
generated by GNU Autoconf 2.64.  Invocation command line was

  $ ../gcc-4.6.3/configure --prefix=/home/gcc-4.6.3

## --------- ##
## Platform. ##
## --------- ##

hostname = ahost
uname -m = x86_64
uname -r = 2.6.18-194.el5
uname -s = Linux
uname -v = #1 SMP Tue Mar 16 21:52:39 EDT 2010

/usr/bin/uname -p = unknown
/bin/uname -X     = unknown

/bin/arch              = x86_64
/usr/bin/arch -k       = unknown
/usr/convex/getsysinfo = unknown
/usr/bin/hostinfo      = unknown
/bin/machine           = unknown
/usr/bin/oslevel       = unknown
/bin/universe          = unknown

PATH: /usr/kerberos/sbin
PATH: /usr/kerberos/bin
PATH: /usr/local/sbin
PATH: /usr/local/bin
PATH: /sbin
PATH: /bin
PATH: /usr/sbin
PATH: /usr/bin
PATH: /root/bin


## ----------- ##
## Core tests. ##
## ----------- ##

configure:2222: checking build system type
configure:2236: result: x86_64-unknown-linux-gnu
configure:2283: checking host system type
configure:2296: result: x86_64-unknown-linux-gnu
configure:2316: checking target system type
configure:2329: result: x86_64-unknown-linux-gnu
configure:2383: checking for a BSD-compatible install
configure:2451: result: /usr/bin/install -c
configure:2462: checking whether ln works
configure:2484: result: yes
configure:2488: checking whether ln -s works
configure:2492: result: yes
configure:2499: checking for a sed that does not truncate output
configure:2563: result: /bin/sed
configure:2572: checking for gawk
configure:2588: found /bin/gawk
configure:2599: result: gawk
configure:3913: checking for gcc
configure:3943: result: no
configure:4006: checking for cc
configure:4053: result: no
configure:4109: checking for cl.exe
configure:4139: result: no
configure:4163: error: in `/tmp/gcc':
configure:4166: error: no acceptable C compiler found in $PATH
See `config.log' for more details.

## ---------------- ##
## Cache variables. ##
## ---------------- ##

ac_cv_build=x86_64-unknown-linux-gnu
ac_cv_env_AR_FOR_TARGET_set=
ac_cv_env_AR_FOR_TARGET_value=
。。。。。。

4. 查找 cc

#find / -name "cc" -print
没有发现系统中安装cc编译器
...全文
56 2 打赏 收藏 转发到动态 举报
写回复
用AI写文章
2 条回复
切换为时间正序
请发表友善的回复…
发表回复

433

社区成员

发帖
与我相关
我的任务
社区描述
其他技术讨论专区
其他 技术论坛(原bbs)
社区管理员
  • 其他技术讨论专区社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧