准备工作:
因为JDK,TOMCAT,MYSQL的安装过程中需要从网上下载部分支持包才可以继续,所以要提前安装下载好下面四个依赖
yum install glibc.i686
yum -y install libaio.so.1 libgcc_s.so.1 libstdc++.so.6
yum update libstdc++-4.4.7-4.el6.x86_64
yum install gcc-c++
glibc.i686 |
8MB+21MB |
libaio.so.1 libgcc_s.so.1 libstdc++.so.6 |
417KB |
libstdc++-4.4.7-4.el6.x86_64 |
仅更新检查, 无下载内容 |
yum install gcc-c++ |
19MB |
yum install glibc.i686
[root@yejing ~]# yum install glibc.i686 Loaded plugins: fastestmirror, security Determining fastest mirrors * base: mirrors.163.com * extras: mirrors.163.com * updates: mirrors.163.com base | 3.7 kB 00:00 base/primary_db | 3.7 MB 00:01 extras | 3.3 kB 00:00 extras/primary_db | 21 kB 00:00 updates | 3.4 kB 00:00 updates/primary_db | 5.6 MB 00:02 Setting up Install Process Resolving Dependencies --> Running transaction check ---> Package glibc.i686 0:2.12-1.132.el6 will be updated --> Processing Dependency: glibc = 2.12-1.132.el6 for package: glibc-headers-2.12-1.132.el6.i686 --> Processing Dependency: glibc = 2.12-1.132.el6 for package: glibc-common-2.12-1.132.el6.i686 --> Processing Dependency: glibc = 2.12-1.132.el6 for package: glibc-devel-2.12-1.132.el6.i686 ---> Package glibc.i686 0:2.12-1.209.el6_9.2 will be an update --> Running transaction check ---> Package glibc-common.i686 0:2.12-1.132.el6 will be updated ---> Package glibc-common.i686 0:2.12-1.209.el6_9.2 will be an update --> Processing Dependency: tzdata >= 2015g-4 for package: glibc-common-2.12-1.209.el6_9.2.i686 ---> Package glibc-devel.i686 0:2.12-1.132.el6 will be updated ---> Package glibc-devel.i686 0:2.12-1.209.el6_9.2 will be an update ---> Package glibc-headers.i686 0:2.12-1.132.el6 will be updated ---> Package glibc-headers.i686 0:2.12-1.209.el6_9.2 will be an update --> Running transaction check ---> Package tzdata.noarch 0:2013g-1.el6 will be updated ---> Package tzdata.noarch 0:2017c-1.el6 will be an update --> Finished Dependency Resolution Dependencies Resolved ============================================================================================= Package Arch Version Repository Size ============================================================================================= Updating: glibc i686 2.12-1.209.el6_9.2 updates 4.4 M Updating for dependencies: glibc-common i686 2.12-1.209.el6_9.2 updates 14 M glibc-devel i686 2.12-1.209.el6_9.2 updates 991 k glibc-headers i686 2.12-1.209.el6_9.2 updates 628 k tzdata noarch 2017c-1.el6 updates 481 k Transaction Summary ============================================================================================= Upgrade 5 Package(s) Total download size: 21 M Is this ok [y/N]: y Downloading Packages: (1/5): glibc-2.12-1.209.el6_9.2.i686.rpm | 4.4 MB 00:01 (2/5): glibc-common-2.12-1.209.el6_9.2.i686.rpm | 14 MB 00:05 (3/5): glibc-devel-2.12-1.209.el6_9.2.i686.rpm | 991 kB 00:00 (4/5): glibc-headers-2.12-1.209.el6_9.2.i686.rpm | 628 kB 00:00 (5/5): tzdata-2017c-1.el6.noarch.rpm | 481 kB 00:00 --------------------------------------------------------------------------------------------- Total 2.5 MB/s | 21 MB 00:08 warning: rpmts_HdrFromFdno: Header V3 RSA/SHA1 Signature, key ID c105b9de: NOKEY Retrieving key from file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-6 Importing GPG key 0xC105B9DE: Userid : CentOS-6 Key (CentOS 6 Official Signing Key) <centos-6-key@centos.org> Package: centos-release-6-5.el6.centos.11.1.i686 (@anaconda-CentOS-201311271240.i386/6.5) 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 Warning: RPMDB altered outside of yum. Updating : tzdata-2017c-1.el6.noarch 1/10 Updating : glibc-2.12-1.209.el6_9.2.i686 2/10 Updating : glibc-common-2.12-1.209.el6_9.2.i686 3/10 Updating : glibc-headers-2.12-1.209.el6_9.2.i686 4/10 Updating : glibc-devel-2.12-1.209.el6_9.2.i686 5/10 Cleanup : glibc-devel-2.12-1.132.el6.i686 6/10 Cleanup : glibc-headers-2.12-1.132.el6.i686 7/10 Cleanup : glibc-2.12-1.132.el6.i686 8/10 Cleanup : glibc-common-2.12-1.132.el6.i686 9/10 Cleanup : tzdata-2013g-1.el6.noarch 10/10 Verifying : glibc-common-2.12-1.209.el6_9.2.i686 1/10 Verifying : glibc-headers-2.12-1.209.el6_9.2.i686 2/10 Verifying : glibc-2.12-1.209.el6_9.2.i686 3/10 Verifying : tzdata-2017c-1.el6.noarch 4/10 Verifying : glibc-devel-2.12-1.209.el6_9.2.i686 5/10 Verifying : glibc-devel-2.12-1.132.el6.i686 6/10 Verifying : glibc-headers-2.12-1.132.el6.i686 7/10 Verifying : tzdata-2013g-1.el6.noarch 8/10 Verifying : glibc-2.12-1.132.el6.i686 9/10 Verifying : glibc-common-2.12-1.132.el6.i686 10/10 Updated: glibc.i686 0:2.12-1.209.el6_9.2 Dependency Updated: glibc-common.i686 0:2.12-1.209.el6_9.2 glibc-devel.i686 0:2.12-1.209.el6_9.2 glibc-headers.i686 0:2.12-1.209.el6_9.2 tzdata.noarch 0:2017c-1.el6 Complete!
yum -y install libaio.so.1 libgcc_s.so.1 libstdc++.so.6
[root@yejing ~]# yum -y install libaio.so.1 libgcc_s.so.1 libstdc++.so.6 Loaded plugins: fastestmirror, security Loading mirror speeds from cached hostfile * base: mirrors.163.com * extras: mirrors.163.com * updates: mirrors.163.com Setting up Install Process Package libaio-0.3.107-10.el6.i686 already installed and latest version Resolving Dependencies --> Running transaction check ---> Package libgcc.i686 0:4.4.7-4.el6 will be updated ---> Package libgcc.i686 0:4.4.7-18.el6 will be an update ---> Package libstdc++.i686 0:4.4.7-4.el6 will be updated ---> Package libstdc++.i686 0:4.4.7-18.el6 will be an update --> Finished Dependency Resolution Dependencies Resolved ======================================================================================================================================= Package Arch Version Repository Size ======================================================================================================================================= Updating: libgcc i686 4.4.7-18.el6 base 115 k libstdc++ i686 4.4.7-18.el6 base 303 k Transaction Summary ===================================================================================================================================== Upgrade 2 Package(s) Total download size: 417 k Downloading Packages: (1/2): libgcc-4.4.7-18.el6.i686.rpm | 115 kB 00:00 (2/2): libstdc++-4.4.7-18.el6.i686.rpm | 303 kB 00:00 --------------------------------------------------------------------------------------------------------------------------------------- Total 646 kB/s | 417 kB 00:00 Running rpm_check_debug Running Transaction Test Transaction Test Succeeded Running Transaction Updating : libgcc-4.4.7-18.el6.i686 1/4 Updating : libstdc++-4.4.7-18.el6.i686 2/4 Cleanup : libstdc++-4.4.7-4.el6.i686 3/4 Cleanup : libgcc-4.4.7-4.el6.i686 4/4 Verifying : libstdc++-4.4.7-18.el6.i686 1/4 Verifying : libgcc-4.4.7-18.el6.i686 2/4 Verifying : libstdc++-4.4.7-4.el6.i686 3/4 Verifying : libgcc-4.4.7-4.el6.i686 4/4 Updated: libgcc.i686 0:4.4.7-18.el6 libstdc++.i686 0:4.4.7-18.el6 Complete!
yum update libstdc++-4.4.7-4.el6.x86_64
[root@yejing ~]# yum update libstdc++-4.4.7-4.el6.x86_64 Loaded plugins: fastestmirror, security Loading mirror speeds from cached hostfile * base: mirrors.163.com * extras: mirrors.163.com * updates: mirrors.163.com Setting up Update Process No Match for argument: libstdc++-4.4.7-4.el6.x86_64 No package libstdc++-4.4.7-4.el6.x86_64 available. No Packages marked for Update
yum install gcc-c++
[root@yejing ~]# yum install gcc-c++ Loaded plugins: fastestmirror, security Loading mirror speeds from cached hostfile * base: mirrors.163.com * extras: mirrors.163.com * updates: mirrors.163.com Setting up Install Process Resolving Dependencies --> Running transaction check ---> Package gcc-c++.i686 0:4.4.7-18.el6 will be installed --> Processing Dependency: libstdc++-devel = 4.4.7-18.el6 for package: gcc-c++-4.4.7-18.el6.i686 --> Processing Dependency: gcc = 4.4.7-18.el6 for package: gcc-c++-4.4.7-18.el6.i686 --> Processing Dependency: libmpfr.so.1 for package: gcc-c++-4.4.7-18.el6.i686 --> Running transaction check ---> Package gcc.i686 0:4.4.7-18.el6 will be installed --> Processing Dependency: libgomp = 4.4.7-18.el6 for package: gcc-4.4.7-18.el6.i686 --> Processing Dependency: cpp = 4.4.7-18.el6 for package: gcc-4.4.7-18.el6.i686 --> Processing Dependency: cloog-ppl >= 0.15 for package: gcc-4.4.7-18.el6.i686 ---> Package libstdc++-devel.i686 0:4.4.7-18.el6 will be installed ---> Package mpfr.i686 0:2.4.1-6.el6 will be installed --> Running transaction check ---> Package cloog-ppl.i686 0:0.15.7-1.2.el6 will be installed --> 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.7-18.el6 will be installed ---> Package libgomp.i686 0:4.4.7-4.el6 will be updated ---> Package libgomp.i686 0:4.4.7-18.el6 will be an update --> Running transaction check ---> Package ppl.i686 0:0.10.2-11.el6 will be installed --> Finished Dependency Resolution Dependencies Resolved ====================================================================================================================================== Package Arch Version Repository Size ====================================================================================================================================== Installing: gcc-c++ i686 4.4.7-18.el6 base 4.3 M Installing for dependencies: cloog-ppl i686 0.15.7-1.2.el6 base 93 k cpp i686 4.4.7-18.el6 base 3.4 M gcc i686 4.4.7-18.el6 base 8.2 M libstdc++-devel i686 4.4.7-18.el6 base 1.6 M mpfr i686 2.4.1-6.el6 base 153 k ppl i686 0.10.2-11.el6 base 1.3 M Updating for dependencies: libgomp i686 4.4.7-18.el6 base 136 k Transaction Summary ======================================================================================================================================== Install 7 Package(s) Upgrade 1 Package(s) Total download size: 19 M Is this ok [y/N]: y Downloading Packages: (1/8): cloog-ppl-0.15.7-1.2.el6.i686.rpm | 93 kB 00:00 (2/8): cpp-4.4.7-18.el6.i686.rpm | 3.4 MB 00:01 (3/8): gcc-4.4.7-18.el6.i686.rpm | 8.2 MB 00:02 (4/8): gcc-c++-4.4.7-18.el6.i686.rpm | 4.3 MB 00:01 (5/8): libgomp-4.4.7-18.el6.i686.rpm | 136 kB 00:00 (6/8): libstdc++-devel-4.4.7-18.el6.i686.rpm | 1.6 MB 00:00 (7/8): mpfr-2.4.1-6.el6.i686.rpm | 153 kB 00:00 (8/8): ppl-0.10.2-11.el6.i686.rpm | 1.3 MB 00:00 -------------------------------------------------------------------------------------------------------------------------------------------- Total 1.8 MB/s | 19 MB 00:10 Running rpm_check_debug Running Transaction Test Transaction Test Succeeded Running Transaction Installing : mpfr-2.4.1-6.el6.i686 1/9 Installing : libstdc++-devel-4.4.7-18.el6.i686 2/9 Installing : cpp-4.4.7-18.el6.i686 3/9 Installing : ppl-0.10.2-11.el6.i686 4/9 Installing : cloog-ppl-0.15.7-1.2.el6.i686 5/9 Updating : libgomp-4.4.7-18.el6.i686 6/9 Installing : gcc-4.4.7-18.el6.i686 7/9 Installing : gcc-c++-4.4.7-18.el6.i686 8/9 Cleanup : libgomp-4.4.7-4.el6.i686 9/9 Verifying : gcc-4.4.7-18.el6.i686 1/9 Verifying : mpfr-2.4.1-6.el6.i686 2/9 Verifying : libgomp-4.4.7-18.el6.i686 3/9 Verifying : cpp-4.4.7-18.el6.i686 4/9 Verifying : cloog-ppl-0.15.7-1.2.el6.i686 5/9 Verifying : ppl-0.10.2-11.el6.i686 6/9 Verifying : libstdc++-devel-4.4.7-18.el6.i686 7/9 Verifying : gcc-c++-4.4.7-18.el6.i686 8/9 Verifying : libgomp-4.4.7-4.el6.i686 9/9 Installed: gcc-c++.i686 0:4.4.7-18.el6 Dependency Installed: cloog-ppl.i686 0:0.15.7-1.2.el6 cpp.i686 0:4.4.7-18.el6 gcc.i686 0:4.4.7-18.el6 libstdc++-devel.i686 0:4.4.7-18.el6 mpfr.i686 0:2.4.1-6.el6 ppl.i686 0:0.10.2-11.el6 Dependency Updated: libgomp.i686 0:4.4.7-18.el6 Complete!