centos6.4安装GCC

Last login: Mon Aug  4 11:46:15 2014 from 10.3.7.128
[jifeng@jifeng04 ~]$ ls
hadoop  jdk1.7.0_45  jdk-7u45-linux-x64.gz
[jifeng@jifeng04 ~]$ gcc --version
-bash: gcc: command not found
[jifeng@jifeng04 ~]$ yum -y install gcc gcc-c++ autoconf make
Loaded plugins: fastestmirror
You need to be root to perform this command.
[jifeng@jifeng04 ~]$ su -
密码:
[root@jifeng04 ~]# yum -y install gcc gcc-c++ autoconf make
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
 * base: mirrors.cug.edu.cn
 * extras: mirrors.cug.edu.cn
 * updates: mirrors.cug.edu.cn
base                                                                                             | 3.7 kB     00:00     
base/primary_db                                                                                  | 4.4 MB     00:05     
extras                                                                                           | 3.4 kB     00:00     
extras/primary_db                                                                                |  19 kB     00:00     
updates                                                                                          | 3.4 kB     00:00     
http://mirrors.cug.edu.cn/centos/6.5/updates/x86_64/repodata/f64710214d4838990048125f99490af14b987819c8c2e7aea579d0341cc9ae21-primary.sqlite.bz2: [Errno 14] PYCURL ERROR 22 - "The requested URL returned error: 404 Not Found"
Trying other mirror.
updates/primary_db                                                                               | 4.7 MB     00:11     
Setting up Install Process
Resolving Dependencies
--> Running transaction check
---> Package autoconf.noarch 0:2.63-5.1.el6 will be installed
--> Processing Dependency: perl >= 5.005_03 for package: autoconf-2.63-5.1.el6.noarch
--> Processing Dependency: perl >= 5.005 for package: autoconf-2.63-5.1.el6.noarch
--> Processing Dependency: perl >= 5.000 for package: autoconf-2.63-5.1.el6.noarch
--> Processing Dependency: perl(vars) for package: autoconf-2.63-5.1.el6.noarch
--> Processing Dependency: perl(strict) for package: autoconf-2.63-5.1.el6.noarch
--> Processing Dependency: perl(Text::ParseWords) for package: autoconf-2.63-5.1.el6.noarch
--> Processing Dependency: perl(POSIX) for package: autoconf-2.63-5.1.el6.noarch
--> Processing Dependency: perl(IO::File) for package: autoconf-2.63-5.1.el6.noarch
--> Processing Dependency: perl(Getopt::Long) for package: autoconf-2.63-5.1.el6.noarch
--> Processing Dependency: perl(File::stat) for package: autoconf-2.63-5.1.el6.noarch
--> Processing Dependency: perl(File::Spec) for package: autoconf-2.63-5.1.el6.noarch
--> Processing Dependency: perl(File::Path) for package: autoconf-2.63-5.1.el6.noarch
--> Processing Dependency: perl(File::Find) for package: autoconf-2.63-5.1.el6.noarch
--> Processing Dependency: perl(File::Copy) for package: autoconf-2.63-5.1.el6.noarch
--> Processing Dependency: perl(File::Compare) for package: autoconf-2.63-5.1.el6.noarch
--> Processing Dependency: perl(File::Basename) for package: autoconf-2.63-5.1.el6.noarch
--> Processing Dependency: perl(Exporter) for package: autoconf-2.63-5.1.el6.noarch
--> Processing Dependency: perl(Errno) for package: autoconf-2.63-5.1.el6.noarch
--> Processing Dependency: perl(DynaLoader) for package: autoconf-2.63-5.1.el6.noarch
--> Processing Dependency: perl(Data::Dumper) for package: autoconf-2.63-5.1.el6.noarch
--> Processing Dependency: perl(Cwd) for package: autoconf-2.63-5.1.el6.noarch
--> Processing Dependency: perl(Carp) for package: autoconf-2.63-5.1.el6.noarch
--> Processing Dependency: /usr/bin/perl for package: autoconf-2.63-5.1.el6.noarch
---> 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
--> Processing Dependency: libgomp.so.1()(64bit) for package: gcc-4.4.7-4.el6.x86_64
---> 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: libmpfr.so.1()(64bit) for package: gcc-c++-4.4.7-4.el6.x86_64
---> Package make.x86_64 1:3.81-20.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_5.2 will be installed
--> Processing Dependency: glibc-headers = 2.12-1.132.el6_5.2 for package: glibc-devel-2.12-1.132.el6_5.2.x86_64
--> Processing Dependency: glibc = 2.12-1.132.el6_5.2 for package: glibc-devel-2.12-1.132.el6_5.2.x86_64
--> Processing Dependency: glibc-headers for package: glibc-devel-2.12-1.132.el6_5.2.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-4.el6 will be installed
---> 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
---> Package perl.x86_64 4:5.10.1-136.el6 will be installed
--> Processing Dependency: perl-libs = 4:5.10.1-136.el6 for package: 4:perl-5.10.1-136.el6.x86_64
--> Processing Dependency: perl-libs for package: 4:perl-5.10.1-136.el6.x86_64
--> Processing Dependency: perl(version) for package: 4:perl-5.10.1-136.el6.x86_64
--> Processing Dependency: perl(Pod::Simple) for package: 4:perl-5.10.1-136.el6.x86_64
--> Processing Dependency: perl(Module::Pluggable) for package: 4:perl-5.10.1-136.el6.x86_64
--> Processing Dependency: libperl.so()(64bit) for package: 4:perl-5.10.1-136.el6.x86_64
--> 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_5.2 will be an update
---> Package glibc-headers.x86_64 0:2.12-1.132.el6_5.2 will be installed
--> Processing Dependency: kernel-headers >= 2.2.1 for package: glibc-headers-2.12-1.132.el6_5.2.x86_64
--> Processing Dependency: kernel-headers for package: glibc-headers-2.12-1.132.el6_5.2.x86_64
---> Package perl-Module-Pluggable.x86_64 1:3.90-136.el6 will be installed
---> Package perl-Pod-Simple.x86_64 1:3.13-136.el6 will be installed
--> Processing Dependency: perl(Pod::Escapes) >= 1.04 for package: 1:perl-Pod-Simple-3.13-136.el6.x86_64
---> Package perl-libs.x86_64 4:5.10.1-136.el6 will be installed
---> Package perl-version.x86_64 3:0.77-136.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_5.2 will be an update
---> Package kernel-headers.x86_64 0:2.6.32-431.23.3.el6 will be installed
---> Package perl-Pod-Escapes.x86_64 1:1.04-136.el6 will be installed
--> Finished Dependency Resolution

Dependencies Resolved

========================================================================================================================
 Package                             Arch                 Version                           Repository             Size
========================================================================================================================
Installing:
 autoconf                            noarch               2.63-5.1.el6                      base                  781 k
 gcc                                 x86_64               4.4.7-4.el6                       base                   10 M
 gcc-c++                             x86_64               4.4.7-4.el6                       base                  4.7 M
 make                                x86_64               1:3.81-20.el6                     base                  389 k
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
 glibc-devel                         x86_64               2.12-1.132.el6_5.2                updates               978 k
 glibc-headers                       x86_64               2.12-1.132.el6_5.2                updates               608 k
 kernel-headers                      x86_64               2.6.32-431.23.3.el6               updates               2.9 M
 libgomp                             x86_64               4.4.7-4.el6                       base                  118 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
 perl                                x86_64               4:5.10.1-136.el6                  base                   10 M
 perl-Module-Pluggable               x86_64               1:3.90-136.el6                    base                   40 k
 perl-Pod-Escapes                    x86_64               1:1.04-136.el6                    base                   32 k
 perl-Pod-Simple                     x86_64               1:3.13-136.el6                    base                  212 k
 perl-libs                           x86_64               4:5.10.1-136.el6                  base                  578 k
 perl-version                        x86_64               3:0.77-136.el6                    base                   51 k
 ppl                                 x86_64               0.10.2-11.el6                     base                  1.3 M
Updating for dependencies:
 glibc                               x86_64               2.12-1.132.el6_5.2                updates               3.8 M
 glibc-common                        x86_64               2.12-1.132.el6_5.2                updates                14 M
 libgcc                              x86_64               4.4.7-4.el6                       base                  101 k
 libstdc++                           x86_64               4.4.7-4.el6                       base                  293 k

Transaction Summary
========================================================================================================================
Install      19 Package(s)
Upgrade       4 Package(s)

Total download size: 57 M
Downloading Packages:
(1/23): autoconf-2.63-5.1.el6.noarch.rpm                                                         | 781 kB     00:10     
(2/23): cloog-ppl-0.15.7-1.2.el6.x86_64.rpm                                                      |  93 kB     00:00     
(3/23): cpp-4.4.7-4.el6.x86_64.rpm                                                               | 3.7 MB     00:53     
(4/23): gcc-4.4.7-4.el6.x86_64.rpm                                                               |  10 MB     00:55     
(5/23): gcc-c++-4.4.7-4.el6.x86_64.rpm                                                           | 4.7 MB     00:04     
(6/23): glibc-2.12-1.132.el6_5.2.x86_64.rpm                                                      | 3.8 MB     00:08     
(7/23): glibc-common-2.12-1.132.el6_5.2.x86_64.rpm                                               |  14 MB     00:33     
(8/23): glibc-devel-2.12-1.132.el6_5.2.x86_64.rpm                                                | 978 kB     00:02     
(9/23): glibc-headers-2.12-1.132.el6_5.2.x86_64.rpm                                              | 608 kB     00:02     
(10/23): kernel-headers-2.6.32-431.23.3.el6.x86_64.rpm                                           | 2.9 MB     00:07     
(11/23): libgcc-4.4.7-4.el6.x86_64.rpm                                                           | 101 kB     00:00     
(12/23): libgomp-4.4.7-4.el6.x86_64.rpm                                                          | 118 kB     00:00     
(13/23): libstdc++-4.4.7-4.el6.x86_64.rpm                                                        | 293 kB     00:00     
(14/23): libstdc++-devel-4.4.7-4.el6.x86_64.rpm                                                  | 1.6 MB     00:02     
(15/23): make-3.81-20.el6.x86_64.rpm                                                             | 389 kB     00:00     
(16/23): mpfr-2.4.1-6.el6.x86_64.rpm                                                             | 157 kB     00:00     
(17/23): perl-5.10.1-136.el6.x86_64.rpm                                                          |  10 MB     00:38     
(18/23): perl-Module-Pluggable-3.90-136.el6.x86_64.rpm                                           |  40 kB     00:00     
(19/23): perl-Pod-Escapes-1.04-136.el6.x86_64.rpm                                                |  32 kB     00:00     
(20/23): perl-Pod-Simple-3.13-136.el6.x86_64.rpm                                                 | 212 kB     00:00     
(21/23): perl-libs-5.10.1-136.el6.x86_64.rpm                                                     | 578 kB     00:00     
(22/23): perl-version-0.77-136.el6.x86_64.rpm                                                    |  51 kB     00:00     
(23/23): ppl-0.10.2-11.el6.x86_64.rpm                                                            | 1.3 MB     00:00     
------------------------------------------------------------------------------------------------------------------------
Total                                                                                   251 kB/s |  57 MB     03:51     
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) <[email protected]>
 Package: centos-release-6-4.el6.centos.10.x86_64 (@anaconda-CentOS-201303020151.x86_64/6.4)
 From   : /etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-6
Running rpm_check_debug
Running Transaction Test
Transaction Test Succeeded
Running Transaction
  Updating   : libgcc-4.4.7-4.el6.x86_64                                                                           1/27 
  Updating   : glibc-common-2.12-1.132.el6_5.2.x86_64                                                              2/27 
  Updating   : glibc-2.12-1.132.el6_5.2.x86_64                                                                     3/27 
  Installing : 1:perl-Pod-Escapes-1.04-136.el6.x86_64                                                              4/27 
  Installing : 3:perl-version-0.77-136.el6.x86_64                                                                  5/27 
  Installing : 1:perl-Pod-Simple-3.13-136.el6.x86_64                                                               6/27 
  Installing : 4:perl-libs-5.10.1-136.el6.x86_64                                                                   7/27 
  Installing : 1:perl-Module-Pluggable-3.90-136.el6.x86_64                                                         8/27 
  Installing : 4:perl-5.10.1-136.el6.x86_64                                                                        9/27 
  Updating   : libstdc++-4.4.7-4.el6.x86_64                                                                       10/27 
  Installing : mpfr-2.4.1-6.el6.x86_64                                                                            11/27 
  Installing : cpp-4.4.7-4.el6.x86_64                                                                             12/27 
  Installing : libstdc++-devel-4.4.7-4.el6.x86_64                                                                 13/27 
  Installing : ppl-0.10.2-11.el6.x86_64                                                                           14/27 
  Installing : cloog-ppl-0.15.7-1.2.el6.x86_64                                                                    15/27 
  Installing : libgomp-4.4.7-4.el6.x86_64                                                                         16/27 
  Installing : kernel-headers-2.6.32-431.23.3.el6.x86_64                                                          17/27 
  Installing : glibc-headers-2.12-1.132.el6_5.2.x86_64                                                            18/27 
  Installing : glibc-devel-2.12-1.132.el6_5.2.x86_64                                                              19/27 
  Installing : gcc-4.4.7-4.el6.x86_64                                                                             20/27 
  Installing : gcc-c++-4.4.7-4.el6.x86_64                                                                         21/27 
  Installing : autoconf-2.63-5.1.el6.noarch                                                                       22/27 
  Installing : 1:make-3.81-20.el6.x86_64                                                                          23/27 
  Cleanup    : libstdc++-4.4.7-3.el6.x86_64                                                                       24/27 
  Cleanup    : glibc-common-2.12-1.107.el6.x86_64                                                                 25/27 
  Cleanup    : glibc-2.12-1.107.el6.x86_64                                                                        26/27 
  Cleanup    : libgcc-4.4.7-3.el6.x86_64                                                                          27/27 
  Verifying  : 1:perl-Module-Pluggable-3.90-136.el6.x86_64                                                         1/27 
  Verifying  : 4:perl-5.10.1-136.el6.x86_64                                                                        2/27 
  Verifying  : libstdc++-4.4.7-4.el6.x86_64                                                                        3/27 
  Verifying  : libstdc++-devel-4.4.7-4.el6.x86_64                                                                  4/27 
  Verifying  : cpp-4.4.7-4.el6.x86_64                                                                              5/27 
  Verifying  : mpfr-2.4.1-6.el6.x86_64                                                                             6/27 
  Verifying  : 1:perl-Pod-Simple-3.13-136.el6.x86_64                                                               7/27 
  Verifying  : autoconf-2.63-5.1.el6.noarch                                                                        8/27 
  Verifying  : glibc-2.12-1.132.el6_5.2.x86_64                                                                     9/27 
  Verifying  : cloog-ppl-0.15.7-1.2.el6.x86_64                                                                    10/27 
  Verifying  : 1:make-3.81-20.el6.x86_64                                                                          11/27 
  Verifying  : libgomp-4.4.7-4.el6.x86_64                                                                         12/27 
  Verifying  : kernel-headers-2.6.32-431.23.3.el6.x86_64                                                          13/27 
  Verifying  : glibc-headers-2.12-1.132.el6_5.2.x86_64                                                            14/27 
  Verifying  : gcc-4.4.7-4.el6.x86_64                                                                             15/27 
  Verifying  : 3:perl-version-0.77-136.el6.x86_64                                                                 16/27 
  Verifying  : ppl-0.10.2-11.el6.x86_64                                                                           17/27 
  Verifying  : gcc-c++-4.4.7-4.el6.x86_64                                                                         18/27 
  Verifying  : 1:perl-Pod-Escapes-1.04-136.el6.x86_64                                                             19/27 
  Verifying  : 4:perl-libs-5.10.1-136.el6.x86_64                                                                  20/27 
  Verifying  : libgcc-4.4.7-4.el6.x86_64                                                                          21/27 
  Verifying  : glibc-devel-2.12-1.132.el6_5.2.x86_64                                                              22/27 
  Verifying  : glibc-common-2.12-1.132.el6_5.2.x86_64                                                             23/27 
  Verifying  : libstdc++-4.4.7-3.el6.x86_64                                                                       24/27 
  Verifying  : glibc-2.12-1.107.el6.x86_64                                                                        25/27 
  Verifying  : libgcc-4.4.7-3.el6.x86_64                                                                          26/27 
  Verifying  : glibc-common-2.12-1.107.el6.x86_64                                                                 27/27 

Installed:
  autoconf.noarch 0:2.63-5.1.el6   gcc.x86_64 0:4.4.7-4.el6   gcc-c++.x86_64 0:4.4.7-4.el6   make.x86_64 1:3.81-20.el6  

Dependency Installed:
  cloog-ppl.x86_64 0:0.15.7-1.2.el6                          cpp.x86_64 0:4.4.7-4.el6                                  
  glibc-devel.x86_64 0:2.12-1.132.el6_5.2                    glibc-headers.x86_64 0:2.12-1.132.el6_5.2                 
  kernel-headers.x86_64 0:2.6.32-431.23.3.el6                libgomp.x86_64 0:4.4.7-4.el6                              
  libstdc++-devel.x86_64 0:4.4.7-4.el6                       mpfr.x86_64 0:2.4.1-6.el6                                 
  perl.x86_64 4:5.10.1-136.el6                               perl-Module-Pluggable.x86_64 1:3.90-136.el6               
  perl-Pod-Escapes.x86_64 1:1.04-136.el6                     perl-Pod-Simple.x86_64 1:3.13-136.el6                     
  perl-libs.x86_64 4:5.10.1-136.el6                          perl-version.x86_64 3:0.77-136.el6                        
  ppl.x86_64 0:0.10.2-11.el6                                

Dependency Updated:
  glibc.x86_64 0:2.12-1.132.el6_5.2      glibc-common.x86_64 0:2.12-1.132.el6_5.2      libgcc.x86_64 0:4.4.7-4.el6     
  libstdc++.x86_64 0:4.4.7-4.el6        

Complete!
[root@jifeng04 ~]# gcc
gcc: 没有输入文件
[root@jifeng04 ~]# gcc --version
gcc (GCC) 4.4.7 20120313 (Red Hat 4.4.7-4)
Copyright ? 2010 Free Software Foundation, Inc.
本程序是自由软件;请参看源代码的版权声明。本软件没有任何担保;
包括没有适销性和某一专用目的下的适用性担保。
[root@jifeng04 ~]# 


你可能感兴趣的:(centos6.4安装GCC)