红联Linux门户
Linux帮助

安装gcc的问题

发布时间:2007-03-19 10:49:19来源:红联作者:sharpios
初次安装redhat的时候没有装gcc,后来在网上下了一个gcc版本,
./configure后提示没有安装gcc,无法执行make和make install ,
有什么办法解决么/
[root@hndx root]# cd /tmp/gcc-4/gcc-4.1.2
[root@hndx gcc-4.1.2]# ./configure
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
checking whether ln works... yes
checking whether ln -s works... yes
checking for gcc... no
checking for cc... no
configure: error: no acceptable cc found in $PATH
[root@hndx gcc-4.1.2]# make
make: *** No targets specified and no makefile found. Stop.
[root@hndx gcc-4.1.2]# make install
make: *** No rule to make target `install'. Stop.
[root@hndx gcc-4.1.2]#

[ 本帖最后由 sharpios 于 2007-3-19 14:33 编辑 ]
文章评论

共有 3 条评论

  1. sharpios 于 2007-03-21 11:51:20发表:

    这个gcc版本是不是要求以前的gcc做编译啊

  2. sharpios 于 2007-03-20 01:01:00发表:

    somebody help me!!:time:1

  3. sharpios 于 2007-03-20 01:00:26发表:

    somebody help me!!:time:1