今天裝nginx的時候,先裝pcre的時候。./configure的時候出現錯誤nginx
configure: error: no acceptable C compiler found in $PATHcentos
緣由是沒裝gccbash
[root@nginx pcre-8.20]# ./configure
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking for gcc... no
checking for cc... no
checking for cl.exe... no
configure: error: in `/usr/local/src/pcre-8.20':
configure: error: no acceptable C compiler found in $PATH
See `config.log' for more details
[root@nginx pcre-8.20]# http://192.168.100.100/cduestc/src/nginx-1.1.7.tar.gzconfigure: error: no acceptable C compiler found in $PATH
-bash: http://192.168.100.100/cduestc/src/nginx-1.1.7.tar.gzconfigure:: 沒有那個文件或目錄
[root@nginx pcre-8.20]# yum install gcc
Loaded plugins: fastestmirror
base | 3.7 kB 00:00
base/primary_db | 3.3 MB 00:04
extras | 3.0 kB 00:00
extras/primary_db | 1.9 kB 00:00
updates | 3.5 kB 00:00
updates/primary_db | 3.1 MB 00:14
Setting up Install Process
Resolving Dependencies
--> Running transaction check
---> Package gcc.i686 0:4.4.4-13.el6 set to be updated
--> Processing Dependency: cpp = 4.4.4-13.el6 for package: gcc-4.4.4-13.el6.i686
--> Processing Dependency: cloog-ppl >= 0.15 for package: gcc-4.4.4-13.el6.i686
--> Processing Dependency: glibc-devel >= 2.2.90-12 for package: gcc-4.4.4-13.el6.i686
--> Running transaction check
---> Package cloog-ppl.i686 0:0.15.7-1.2.el6 set to be updated
--> Processing Dependency: libppl_c.so.2 for package: cloog-ppl-0.15.7-1.2.el6.i686
--> Processing Dependency: libppl.so.7 for package: cloog-ppl-0.15.7-1.2.el6.i686
---> Package cpp.i686 0:4.4.4-13.el6 set to be updated
--> Processing Dependency: libmpfr.so.1 for package: cpp-4.4.4-13.el6.i686
---> Package glibc-devel.i686 0:2.12-1.7.el6_0.5 set to be updated
--> Processing Dependency: glibc-headers = 2.12-1.7.el6_0.5 for package: glibc-devel-2.12-1.7.el6_0.5.i686
--> Processing Dependency: glibc = 2.12-1.7.el6_0.5 for package: glibc-devel-2.12-1.7.el6_0.5.i686
--> Processing Dependency: glibc-headers for package: glibc-devel-2.12-1.7.el6_0.5.i686
--> Running transaction check
--> Processing Dependency: glibc = 2.12-1.7.el6 for package: glibc-common-2.12-1.7.el6.i686
---> Package glibc.i686 0:2.12-1.7.el6_0.5 set to be updated
---> Package glibc-headers.i686 0:2.12-1.7.el6_0.5 set to be updated
--> Processing Dependency: kernel-headers >= 2.2.1 for package: glibc-headers-2.12-1.7.el6_0.5.i686
--> Processing Dependency: kernel-headers for package: glibc-headers-2.12-1.7.el6_0.5.i686
---> Package mpfr.i686 0:2.4.1-6.el6 set to be updated
---> Package ppl.i686 0:0.10.2-11.el6 set to be updated
--> Running transaction check
---> Package glibc-common.i686 0:2.12-1.7.el6_0.5 set to be updated
---> Package kernel-headers.i686 0:2.6.32-71.29.1.el6 set to be updated
--> Finished Dependency Resolutionide
Dependencies Resolvedui
================================================================================
Package Arch Version Repository Size
================================================================================
Installing:
gcc i686 4.4.4-13.el6 base 8.1 M
Installing for dependencies:
cloog-ppl i686 0.15.7-1.2.el6 base 93 k
cpp i686 4.4.4-13.el6 base 3.4 M
glibc-devel i686 2.12-1.7.el6_0.5 updates 961 k
glibc-headers i686 2.12-1.7.el6_0.5 updates 600 k
kernel-headers i686 2.6.32-71.29.1.el6 updates 991 k
mpfr i686 2.4.1-6.el6 base 153 k
ppl i686 0.10.2-11.el6 base 1.3 M
Updating for dependencies:
glibc i686 2.12-1.7.el6_0.5 updates 4.3 M
glibc-common i686 2.12-1.7.el6_0.5 updates 14 Mthis
Transaction Summary
================================================================================
Install 8 Package(s)
Upgrade 2 Package(s)debug
Total download size: 34 M
Is this ok [y/N]: y
Downloading Packages:
(1/10): cloog-ppl-0.15.7-1.2.el6.i686.rpm | 93 kB 00:00
(2/10): cpp-4.4.4-13.el6.i686.rpm | 3.4 MB 00:03
(3/10): gcc-4.4.4-13.el6.i686.rpm | 8.1 MB 00:06
(4/10): glibc-2.12-1.7.el6_0.5.i686.rpm | 4.3 MB 00:10
(5/10): glibc-common-2.12-1.7.el6_0.5.i686.rpm | 14 MB 00:33
(6/10): glibc-devel-2.12-1.7.el6_0.5.i686.rpm | 961 kB 00:10
(7/10): glibc-headers-2.12-1.7.el6_0.5.i686.rpm | 600 kB 00:09
(8/10): kernel-headers-2.6.32-71.29.1.el6.i686.rpm | 991 kB 00:06
(9/10): mpfr-2.4.1-6.el6.i686.rpm | 153 kB 00:00
(10/10): ppl-0.10.2-11.el6.i686.rpm | 1.3 MB 00:00
--------------------------------------------------------------------------------
Total 357 kB/s | 34 MB 01:37
warning: rpmts_HdrFromFdno: Header V3 RSA/SHA256 Signature, key ID c105b9de: NOKEY
updates/gpgkey | 3.3 kB 00:00 ...
Importing GPG key 0xC105B9DE "CentOS-6 Key (CentOS 6 Official Signing Key) <centos-6-key@centos.org>" from /etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-6
Is this ok [y/N]: y
Running rpm_check_debug
Running Transaction Test
Transaction Test Succeeded
Running Transaction
Installing : kernel-headers-2.6.32-71.29.1.el6.i686 1/12
Updating : glibc-common-2.12-1.7.el6_0.5.i686 2/12
Updating : glibc-2.12-1.7.el6_0.5.i686 3/12
Installing : mpfr-2.4.1-6.el6.i686 4/12
Installing : cpp-4.4.4-13.el6.i686 5/12
Installing : ppl-0.10.2-11.el6.i686 6/12
Installing : glibc-headers-2.12-1.7.el6_0.5.i686 7/12
Installing : cloog-ppl-0.15.7-1.2.el6.i686 8/12
Installing : glibc-devel-2.12-1.7.el6_0.5.i686 9/12
Installing : gcc-4.4.4-13.el6.i686 10/12
Cleanup : glibc-common-2.12-1.7.el6.i686 11/12
Cleanup : glibc-2.12-1.7.el6.i686 12/12ci
Installed:
gcc.i686 0:4.4.4-13.el6get
Dependency Installed:
cloog-ppl.i686 0:0.15.7-1.2.el6
cpp.i686 0:4.4.4-13.el6
glibc-devel.i686 0:2.12-1.7.el6_0.5
glibc-headers.i686 0:2.12-1.7.el6_0.5
kernel-headers.i686 0:2.6.32-71.29.1.el6
mpfr.i686 0:2.4.1-6.el6
ppl.i686 0:0.10.2-11.el6it
Dependency Updated:
glibc.i686 0:2.12-1.7.el6_0.5 glibc-common.i686 0:2.12-1.7.el6_0.5
Complete! [root@nginx pcre-8.20]#./configure 完成~