QQ登录

只需一步,快速开始

 找回密码
 注册

QQ登录

只需一步,快速开始

查看: 1418|回复: 7

安装了一上午的GCC也没成功,帮忙吧大家

[复制链接]
发表于 2005-9-15 12:53:54 | 显示全部楼层 |阅读模式
系统RET HAT 9 CORE 3
下载GCC3.4.1 源代码包

下面是命令和错误提示,帮忙看看是怎么回事吧:
[root@Linux-Server gcc-3.4.1]# ./configure --prefix=/usr/local/gcc-build --with-local-prefix=/tools --disable-nls --enable-shared enable-languages=c,c++,java

提示:
configure: warning: enable-languages=c,c++,java: invalid host type
loading cache ./config.cache
checking host system type... Invalid configuration `enable-languages=c,c++,java': machine `enable' not recognized

checking target system type... Invalid configuration `enable-languages=c,c++,java': machine `enable' not recognized

checking build system type... Invalid configuration `enable-languages=c,c++,java': machine `enable' not recognized

checking for a BSD compatible install... /usr/bin/install -c
./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.
发表于 2005-9-15 13:21:33 | 显示全部楼层
换成“--enable-languages=c,c++,java”试试。
回复

使用道具 举报

 楼主| 发表于 2005-9-15 13:44:02 | 显示全部楼层
还是不行啊.
总是提示:
./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

这什么意思啊?
回复

使用道具 举报

发表于 2005-9-15 14:49:23 | 显示全部楼层
gcc安装了没有?若没有,要下rpm包安装的,因为无编译工具,是无法编译的。
回复

使用道具 举报

发表于 2005-9-16 08:55:42 | 显示全部楼层
他就是要安装GCC的,gcc是不是一定药用rpm安装?
回复

使用道具 举报

发表于 2005-9-16 10:49:40 | 显示全部楼层
gcc也要用编译起编译出来啊,你没有gcc自然要找binary包。
回复

使用道具 举报

发表于 2005-9-16 12:03:40 | 显示全部楼层
没有gcc你用什么编译啊,不能编译只要用rpm 或是binary包喽
回复

使用道具 举报

发表于 2005-9-19 16:28:13 | 显示全部楼层
www.rpmfind.net
回复

使用道具 举报

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

本版积分规则

GMT+8, 2024-7-5 17:39 , Processed in 0.077578 second(s), 15 queries .

© 2021 Powered by Discuz! X3.5.

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