configure: error: no acceptable C compiler found in $PATH 问题解决

解决办法:

安装GCC软件套件

[root@localhost ~]# yum install gcc
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
 * base: mirror01.idc.hinet.NET
 * extras: mirror01.idc.hinet.Net
 * updates: mirror01.idc.hinet.net
Setting up Install Process
Resolving Dependencies
--> Running transaction check
---> Package gcc.i386 0:4.1.2-50.el5 set to be updated
--> Processing Dependency: cpp = 4.1.2-50.el5 for package: gcc
--> Processing Dependency: glibc-devel >= 2.2.90-12 for package: gcc
--> Running transaction check
---> Package cpp.i386 0:4.1.2-50.el5 set to be updated
---> Package glibc-devel.i386 0:2.5-58.el5_6.3 set to be updated
--> Processing Dependency: glibc-headers = 2.5-58.el5_6.3 for package: glibc-devel
--> Processing Dependency: glibc-headers for package: glibc-devel
--> Running transaction check
---> Package glibc-headers.i386 0:2.5-58.el5_6.3 set to be updated
--> Processing Dependency: kernel-headers >= 2.2.1 for package: glibc-headers
--> Processing Dependency: kernel-headers for package: glibc-headers
--> Running transaction check
---> Package kernel-headers.i386 0:2.6.18-238.9.1.el5 set to be updated
--> Finished Dependency Resolution

Dependencies Resolved

================================================================================
 Package              Arch       Version                    Repository     Size
================================================================================
Installing:
 gcc                  i386       4.1.2-50.el5               base          5.2 M
Installing for dependencies:
 cpp                  i386       4.1.2-50.el5               base          2.7 M
 glibc-devel          i386       2.5-58.el5_6.3             updates       2.0 M
 glibc-headers        i386       2.5-58.el5_6.3             updates       603 k
 kernel-headers       i386       2.6.18-238.9.1.el5         updates       1.1 M

Transaction Summary
================================================================================
Install       5 Package(s)
Upgrade       0 Package(s)

Total download size: 12 M
Is this ok [y/N]: y
Downloading Packages:
(1/5): glibc-headers-2.5-58.el5_6.3.i386.rpm             | 603 kB     00:00     
(2/5): kernel-headers-2.6.18-238.9.1.el5.i386.rpm        | 1.1 MB     00:00     
(3/5): glibc-devel-2.5-58.el5_6.3.i386.rpm               | 2.0 MB     00:00     
(4/5): cpp-4.1.2-50.el5.i386.rpm                         | 2.7 MB     00:00     
(5/5): gcc-4.1.2-50.el5.i386.rpm                         | 5.2 MB     00:00     
--------------------------------------------------------------------------------
Total                                           5.1 MB/s |  12 MB     00:02     
Running rpm_check_debug
Running Transaction Test
Finished Transaction Test
Transaction Test Succeeded
Running Transaction
  Installing     : kernel-headers                                           1/5 
  Installing     : cpp                                                      2/5 
  Installing     : glibc-headers                                            3/5 
  Installing     : glibc-devel                                              4/5 
  Installing     : gcc                                                      5/5

Installed:
  gcc.i386 0:4.1.2-50.el5

Dependency Installed:
  cpp.i386 0:4.1.2-50.el5              glibc-devel.i386 0:2.5-58.el5_6.3        
  glibc-headers.i386 0:2.5-58.el5_6.3  kernel-headers.i386 0:2.6.18-238.9.1.el5

Complete!

[root@localhost pcre-8.36]# ./configure

成功了!!

上一篇:零基础学习hadoop开发所必须具体的三个基础知识


下一篇:servlet研究学习总结--OutputStream和PrintWriter的区别