在项目进行部署是安装 resin 时 linux 服务器出现没有安装gcc 导致安装resin 失败
下面为安装gcc过程
root@localhost resin-3.1.9]# ./configure --prefix=/usr/local/resin-3.1.9 --with-java-home=/usr/local/jdk1.6.0_21/ --enable-lfs --enable-ssl --enable-debug
checking build system type... x86_64-unknown-linux-gnu
checking host system type... x86_64-unknown-linux-gnu
checking target system type... x86_64-unknown-linux-gnu
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: no acceptable C compiler found in $PATH
See `config.log' for more details.
[root@localhost resin-3.1.9]# yum -y install gcc-c++
Loaded plugins: fastestmirror, product-id, subscription-manager
This system is not registered to Red Hat Subscription Management. You can use subscription-manager to register.
Determining fastest mirrors
base | 3.7 kB 00:00
extras | 3.4 kB 00:00
updates | 3.4 kB 00:00
updates/primary_db | 2.0 MB 00:03
Setting up Install Process
Resolving Dependencies
--> Running transaction check
---> Package gcc-c++.x86_64 0:4.4.7-4.el6 will be installed
--> Processing Dependency: libstdc++-devel = 4.4.7-4.el6 for package: gcc-c++-4.4.7-4.el6.x86_64
--> Processing Dependency: libstdc++ = 4.4.7-4.el6 for package: gcc-c++-4.4.7-4.el6.x86_64
--> Processing Dependency: gcc = 4.4.7-4.el6 for package: gcc-c++-4.4.7-4.el6.x86_64
--> Processing Dependency: libmpfr.so.1()(64bit) for package: gcc-c++-4.4.7-4.el6.x86_64
--> Running transaction check
---> Package gcc.x86_64 0:4.4.7-4.el6 will be installed
--> Processing Dependency: libgomp = 4.4.7-4.el6 for package: gcc-4.4.7-4.el6.x86_64
--> Processing Dependency: cpp = 4.4.7-4.el6 for package: gcc-4.4.7-4.el6.x86_64
--> Processing Dependency: libgcc >= 4.4.7-4.el6 for package: gcc-4.4.7-4.el6.x86_64
--> Processing Dependency: glibc-devel >= 2.2.90-12 for package: gcc-4.4.7-4.el6.x86_64
--> Processing Dependency: cloog-ppl >= 0.15 for package: gcc-4.4.7-4.el6.x86_64
---> Package libstdc++.x86_64 0:4.4.7-3.el6 will be updated
---> Package libstdc++.x86_64 0:4.4.7-4.el6 will be an update
---> Package libstdc++-devel.x86_64 0:4.4.7-4.el6 will be installed
---> Package mpfr.x86_64 0:2.4.1-6.el6 will be installed
--> Running transaction check
---> Package cloog-ppl.x86_64 0:0.15.7-1.2.el6 will be installed
--> Processing Dependency: libppl_c.so.2()(64bit) for package: cloog-ppl-0.15.7-1.2.el6.x86_64
--> Processing Dependency: libppl.so.7()(64bit) for package: cloog-ppl-0.15.7-1.2.el6.x86_64
---> Package cpp.x86_64 0:4.4.7-4.el6 will be installed
---> Package glibc-devel.x86_64 0:2.12-1.132.el6 will be installed
--> Processing Dependency: glibc-headers = 2.12-1.132.el6 for package: glibc-devel-2.12-1.132.el6.x86_64
--> Processing Dependency: glibc = 2.12-1.132.el6 for package: glibc-devel-2.12-1.132.el6.x86_64
--> Processing Dependency: glibc-headers for package: glibc-devel-2.12-1.132.el6.x86_64
---> Package libgcc.x86_64 0:4.4.7-3.el6 will be updated
---> Package libgcc.x86_64 0:4.4.7-4.el6 will be an update
---> Package libgomp.x86_64 0:4.4.7-3.el6 will be updated
---> Package libgomp.x86_64 0:4.4.7-4.el6 will be an update
--> Running transaction check
---> Package glibc.x86_64 0:2.12-1.107.el6 will be updated
--> Processing Dependency: glibc = 2.12-1.107.el6 for package: glibc-common-2.12-1.107.el6.x86_64
---> Package glibc.x86_64 0:2.12-1.132.el6 will be an update
---> Package glibc-headers.x86_64 0:2.12-1.132.el6 will be installed
---> Package ppl.x86_64 0:0.10.2-11.el6 will be installed
--> Running transaction check
---> Package glibc-common.x86_64 0:2.12-1.107.el6 will be updated
---> Package glibc-common.x86_64 0:2.12-1.132.el6 will be an update
--> Finished Dependency Resolution
Dependencies Resolved
================================================================================
Package Arch Version Repository Size
================================================================================
Installing:
gcc-c++ x86_64 4.4.7-4.el6 base 4.7 M
Installing for dependencies:
cloog-ppl x86_64 0.15.7-1.2.el6 base 93 k
cpp x86_64 4.4.7-4.el6 base 3.7 M
gcc x86_64 4.4.7-4.el6 base 10 M
glibc-devel x86_64 2.12-1.132.el6 base 978 k
glibc-headers x86_64 2.12-1.132.el6 base 608 k
libstdc++-devel x86_64 4.4.7-4.el6 base 1.6 M
mpfr x86_64 2.4.1-6.el6 base 157 k
ppl x86_64 0.10.2-11.el6 base 1.3 M
Updating for dependencies:
glibc x86_64 2.12-1.132.el6 base 3.8 M
glibc-common x86_64 2.12-1.132.el6 base 14 M
libgcc x86_64 4.4.7-4.el6 base 101 k
libgomp x86_64 4.4.7-4.el6 base 118 k
libstdc++ x86_64 4.4.7-4.el6 base 293 k
Transaction Summary
================================================================================
Install 9 Package(s)
Upgrade 5 Package(s)
Total download size: 42 M
Downloading Packages:
(1/14): cloog-ppl-0.15.7-1.2.el6.x86_64.rpm | 93 kB 00:00
(2/14): cpp-4.4.7-4.el6.x86_64.rpm | 3.7 MB 00:05
(3/14): gcc-4.4.7-4.el6.x86_64.rpm | 10 MB 00:17
(4/14): gcc-c++-4.4.7-4.el6.x86_64.rpm | 4.7 MB 00:06
(5/14): glibc-2.12-1.132.el6.x86_64.rpm | 3.8 MB 00:08
(6/14): glibc-common-2.12-1.132.el6.x86_64.rpm | 14 MB 00:20
(7/14): glibc-devel-2.12-1.132.el6.x86_64.rpm | 978 kB 00:01
(8/14): glibc-headers-2.12-1.132.el6.x86_64.rpm | 608 kB 00:00
(9/14): libgcc-4.4.7-4.el6.x86_64.rpm | 101 kB 00:00
(10/14): libgomp-4.4.7-4.el6.x86_64.rpm | 118 kB 00:00
(11/14): libstdc++-4.4.7-4.el6.x86_64.rpm | 293 kB 00:00
(12/14): libstdc++-devel-4.4.7-4.el6.x86_64.rpm | 1.6 MB 00:02
(13/14): mpfr-2.4.1-6.el6.x86_64.rpm | 157 kB 00:00
(14/14): ppl-0.10.2-11.el6.x86_64.rpm | 1.3 MB 00:03
--------------------------------------------------------------------------------
Total 227 kB/s | 42 MB 03:07
Running rpm_check_debug
Running Transaction Test
Transaction Test Succeeded
Running Transaction
Updating : libgcc-4.4.7-4.el6.x86_64 1/19
Updating : glibc-common-2.12-1.132.el6.x86_64 2/19
Updating : glibc-2.12-1.132.el6.x86_64 3/19
Updating : libstdc++-4.4.7-4.el6.x86_64 4/19
Installing : mpfr-2.4.1-6.el6.x86_64 5/19
Installing : cpp-4.4.7-4.el6.x86_64 6/19
Installing : libstdc++-devel-4.4.7-4.el6.x86_64 7/19
Installing : ppl-0.10.2-11.el6.x86_64 8/19
Installing : cloog-ppl-0.15.7-1.2.el6.x86_64 9/19
Updating : libgomp-4.4.7-4.el6.x86_64 10/19
Installing : glibc-headers-2.12-1.132.el6.x86_64 11/19
Installing : glibc-devel-2.12-1.132.el6.x86_64 12/19
Installing : gcc-4.4.7-4.el6.x86_64 13/19
Installing : gcc-c++-4.4.7-4.el6.x86_64 14/19
Cleanup : libstdc++-4.4.7-3.el6.x86_64 15/19
Cleanup : libgomp-4.4.7-3.el6.x86_64 16/19
Cleanup : glibc-common-2.12-1.107.el6.x86_64 17/19
Cleanup : glibc-2.12-1.107.el6.x86_64 18/19
Cleanup : libgcc-4.4.7-3.el6.x86_64 19/19
Verifying : glibc-2.12-1.132.el6.x86_64 1/19
Verifying : libstdc++-devel-4.4.7-4.el6.x86_64 2/19
Verifying : cpp-4.4.7-4.el6.x86_64 3/19
Verifying : glibc-devel-2.12-1.132.el6.x86_64 4/19
Verifying : ppl-0.10.2-11.el6.x86_64 5/19
Verifying : libgomp-4.4.7-4.el6.x86_64 6/19
Verifying : glibc-common-2.12-1.132.el6.x86_64 7/19
Verifying : mpfr-2.4.1-6.el6.x86_64 8/19
Verifying : libgcc-4.4.7-4.el6.x86_64 9/19
Verifying : gcc-4.4.7-4.el6.x86_64 10/19
Verifying : gcc-c++-4.4.7-4.el6.x86_64 11/19
Verifying : cloog-ppl-0.15.7-1.2.el6.x86_64 12/19
Verifying : glibc-headers-2.12-1.132.el6.x86_64 13/19
Verifying : libstdc++-4.4.7-4.el6.x86_64 14/19
Verifying : glibc-2.12-1.107.el6.x86_64 15/19
Verifying : libgomp-4.4.7-3.el6.x86_64 16/19
Verifying : libgcc-4.4.7-3.el6.x86_64 17/19
Verifying : glibc-common-2.12-1.107.el6.x86_64 18/19
Verifying : libstdc++-4.4.7-3.el6.x86_64 19/19
Installed:
gcc-c++.x86_64 0:4.4.7-4.el6
Dependency Installed:
cloog-ppl.x86_64 0:0.15.7-1.2.el6 cpp.x86_64 0:4.4.7-4.el6
gcc.x86_64 0:4.4.7-4.el6 glibc-devel.x86_64 0:2.12-1.132.el6
glibc-headers.x86_64 0:2.12-1.132.el6 libstdc++-devel.x86_64 0:4.4.7-4.el6
mpfr.x86_64 0:2.4.1-6.el6 ppl.x86_64 0:0.10.2-11.el6
Dependency Updated:
glibc.x86_64 0:2.12-1.132.el6 glibc-common.x86_64 0:2.12-1.132.el6
libgcc.x86_64 0:4.4.7-4.el6 libgomp.x86_64 0:4.4.7-4.el6
libstdc++.x86_64 0:4.4.7-4.el6
Complete!