- 论坛徽章:
- 0
|
我在安装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 编辑 ] |
|