RHE5 -- no acceptable C compiler found in $PATH

执行./configure 然后就出现以下提示 :

checking build system type... i686-pc-linux-gnu
checking host system type... i686-pc-linux-gnu
checking whether make sets $(MAKE)... yes
checking for gcc... no
checking for cc... no
checking for cc... no
checking for cl... no
configure: error: no acceptable C compiler found in $PATH


执行make后,  
提示:No  targets   specified   and   no   makefile   found.Stop.  
   
执行make install后  
提示:No  rule   to   make   target   'install'.Stop.

安装比较简单:
#rpm -ivh rpm文件

1)# rpm -ivh kernel-headers-2.6.18-92.el5.i386.rpm
2)# rpm -ivh glibc-headers-2.5-24.i386.rpm
3)# rpm -ivh glibc-devel-2.5-24.i386.rpm
4)# rpm -ivh libgomp-4.1.2-42.el5.i386.rpm
5)# rpm -ivh gcc-4.1.2-42.el5.i386.rpm
6)# rpm -ivh libstdc++-devel-4.1.2-42.el5.i386.rpm
7)# rpm -ivh gcc-c++-4.1.2-42.el5.i386.rpm

[root@localhost gcc]# rpm -ivh kernel-headers-2.6.18-92.el5.i386.rpm
warning: kernel-headers-2.6.18-92.el5.i386.rpm: Header V3 DSA signature: NOKEY, key ID 37017186
Preparing...                ########################################### [100%]
package kernel-headers-2.6.18-92.el5 is already installed

[root@localhost gcc]# rpm -ivh glibc-headers-2.5-24.i386.rpm
warning: glibc-headers-2.5-24.i386.rpm: Header V3 DSA signature: NOKEY, key ID 37017186
Preparing...                ########################################### [100%]
package glibc-headers-2.5-24 is already installed

[root@localhost gcc]# rpm -ivh glibc-devel-2.5-24.i386.rpm
warning: glibc-devel-2.5-24.i386.rpm: Header V3 DSA signature: NOKEY, key ID 37017186
Preparing...                ########################################### [100%]
package glibc-devel-2.5-24 is already installed

[root@localhost gcc]# rpm -ivh libgomp-4.1.2-42.el5.i386.rpm
warning: libgomp-4.1.2-42.el5.i386.rpm: Header V3 DSA signature: NOKEY, key ID 37017186
Preparing...                ########################################### [100%]
   1:libgomp                ########################################### [100%]

[root@localhost gcc]# rpm -ivh gcc-4.1.2-42.el5.i386.rpm
warning: gcc-4.1.2-42.el5.i386.rpm: Header V3 DSA signature: NOKEY, key ID 37017186
Preparing...                ########################################### [100%]
   1:gcc                    ########################################### [100%]

[root@localhost gcc]# rpm -ivh libstdc++-devel-4.1.2-42.el5.i386.rpm
warning: libstdc++-devel-4.1.2-42.el5.i386.rpm: Header V3 DSA signature: NOKEY, key ID 37017186
Preparing...                ########################################### [100%]
   1:libstdc++-devel        ########################################### [100%]

[root@localhost gcc]# rpm -ivh gcc-c++-4.1.2-42.el5.i386.rpm
warning: gcc-c++-4.1.2-42.el5.i386.rpm: Header V3 DSA signature: NOKEY, key ID 37017186
Preparing...                ########################################### [100%]
   1:gcc-c++                ########################################### [100%]

大功告成...


你可能感兴趣的:(C++,c,linux,C#,gcc)