买手网:Linux上安装GCC编译器过程

来源:百度文库 编辑:查人人中国名人网 时间:2024/04/25 12:45:46
我在安装GCC编辑器时到了配置一步时无法通过,如下
[root@localhost gcc-build]# /home/Garra/Desktop/gcc-4.2-20060422/configure --prefix=/usr/local/gcc-4.2-20060422 --enable-threads=posix --disable-checking --enable--long-long --host=i386-redhat-linux --with-system-zlib --enable-languages=c,c++,java
creating cache ./config.cache
checking host system type... i386-redhat-linux-gnu
checking target system type... i386-redhat-linux-gnu
checking build system type... i386-redhat-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

哪位大哥大姐能告诉我这是怎么回事?谢谢

老大你真搞笑!见了很多这种问题,就你是装Gcc时出错的。
你是从源码装的Gcc,但是,这时你机子上还没有Gcc(还没装),编译不了,Gcc当然就装不上。应该先装Gcc的二进制包,已有了Gcc要升级时才可以用源码装的。