Chinaunix

标题: gcc编译工具的安装问题(在线等……) [打印本页]

作者: 小蟹子    时间: 2007-09-11 17:02
标题: gcc编译工具的安装问题(在线等……)
我在安装gcc-3.4.6
当我执行:./configure --prefix=/usr/local/gcc-3.4.6
的时候出现以下输出:$ ./configure --prefix=/usr/local/gcc-3.4.6
creating 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
./configure: line 2339: cc: command not found
*** The command 'cc -o conftest -g   conftest.c' failed.
*** You must set the environment variable CC to a working compiler.
$
这样的问题是什么原因?是不是我下载的版本不全。

安装手册上说下一步要执行:make
可是我的执行结果是:make: *** No targets specified and no makefile found.  Stop.
该怎么解决?Makefie文件要自己写吗?该怎么写?
还是使用解压后得到的Makefile.def, Makefile.in, Makefile.tpl中的一个或者是几个?
但是这些Makefile.*文件也不符合Makefile的规则啊。
也就是说make -f Makefile.*有语法错误。
请大侠们指点啊。

[ 本帖最后由 小蟹子 于 2007-9-11 17:23 编辑 ]
作者: luocys    时间: 2007-09-11 17:38
是没有找到cc编译环境。

1、检查你的系统中是否有cc编译器

2、看看编译环境设置是否无误  You must set the environment variable CC to a working compiler。
作者: 小蟹子    时间: 2007-09-12 10:21
我的系统里没有CC编辑器,该去那里下载啊?
作者: 小蟹子    时间: 2007-09-12 10:51
是不是再按装gcc的时候必须先安装CC编译工具?而只有安装了,gcc和cc编译工具后才能按章cvs服务器。
高手回答啊,我第一次配置工程环境,非常的菜,很麻手的。
作者: jsonic    时间: 2007-09-12 13:15
提示: 作者被禁止或删除 内容自动屏蔽




欢迎光临 Chinaunix (http://bbs.chinaunix.net/) Powered by Discuz! X3.2