Linux平台上,GCC等工具包的最便捷安装方法

     有时,Linux(Red Hat Linux, CentOS,或者Debian,Ubuntu,再或者SuSe Linux)需要安装开发包。如果一个一个包的装置估计太费时,能否有一个最快的安装方式。

     下面,我们提供一种方式。

#Red Hat LInux , CentOS 平台上
yum groupinstall "Development Tools"

#Debian , Ubuntu平台上
apt-get install build-essentials


       请看,在CentOS 6.5安装过程:

Dependencies Resolved

====================================================================================================================================
 Package                                Arch                   Version                                Repository               Size
====================================================================================================================================
Installing:
 bison                                  x86_64                 2.4.1-5.el6                            base                    637 k
 byacc                                  x86_64                 1.9.20070509-7.el6                     base                     48 k
 cscope                                 x86_64                 15.6-6.el6                             base                    136 k
 ctags                                  x86_64                 5.8-2.el6                              base                    147 k
 cvs                                    x86_64                 1.11.23-16.el6                         base                    712 k
 diffstat                               x86_64                 1.51-2.el6                             base                     29 k
 doxygen                                x86_64                 1:1.6.1-6.el6                          base                    2.4 M
 flex                                   x86_64                 2.5.35-8.el6                           base                    286 k
 gcc-gfortran                           x86_64                 4.4.7-4.el6                            base                    4.7 M
 gettext                                x86_64                 0.17-16.el6                            base                    1.8 M
 indent                                 x86_64                 2.2.10-7.el6                           base                    115 k
 intltool                               noarch                 0.41.0-1.1.el6                         base                     58 k
 patchutils                             x86_64                 0.3.1-3.1.el6                          base                     95 k
 rcs                                    x86_64                 5.7-37.el6                             base                    173 k
 redhat-rpm-config                      noarch                 9.0.3-42.el6.centos                    base                     59 k
 rpm-build                              x86_64                 4.8.0-37.el6                           base                    127 k
 swig                                   x86_64                 1.3.40-6.el6                           base                    1.1 M
 systemtap                              x86_64                 2.3-4.el6_5                            updates                  26 k
Updating:
 subversion                             x86_64                 1.6.11-10.el6_5                        updates                 2.3 M
Installing for dependencies:
 gdb                                    x86_64                 7.2-60.el6_4.1                         base                    2.3 M
 gettext-devel                          x86_64                 0.17-16.el6                            base                    155 k
 gettext-libs                           x86_64                 0.17-16.el6                            base                    112 k
 libgcj                                 x86_64                 4.4.7-4.el6                            base                     19 M
 libgfortran                            x86_64                 4.4.7-4.el6                            base                    265 k
 perl-Compress-Raw-Zlib                 x86_64                 1:2.021-136.el6                        base                     69 k
 perl-Compress-Zlib                     x86_64                 2.021-136.el6                          base                     45 k
 perl-HTML-Parser                       x86_64                 3.64-2.el6                             base                    109 k
 perl-HTML-Tagset                       noarch                 3.20-4.el6                             base                     17 k
 perl-IO-Compress-Base                  x86_64                 2.021-136.el6                          base                     69 k
 perl-IO-Compress-Zlib                  x86_64                 2.021-136.el6                          base                    135 k
 perl-XML-Parser                        x86_64                 2.36-7.el6                             base                    224 k
 perl-libwww-perl                       noarch                 5.833-2.el6                            base                    387 k
 systemtap-client                       x86_64                 2.3-4.el6_5                            updates                 3.4 M
 systemtap-devel                        x86_64                 2.3-4.el6_5                            updates                 1.4 M
Updating for dependencies:
 subversion-javahl                      x86_64                 1.6.11-10.el6_5                        updates                 173 k

Transaction Summary
====================================================================================================================================
Install      33 Package(s)
Upgrade       2 Package(s)

Total download size: 42 M
Is this ok [y/N]: y
Downloading Packages:
(1/35): bison-2.4.1-5.el6.x86_64.rpm                                                                         | 637 kB     00:01     
(2/35): byacc-1.9.20070509-7.el6.x86_64.rpm                                                                  |  48 kB     00:00     
(3/35): cscope-15.6-6.el6.x86_64.rpm                                                                         | 136 kB     00:00     
(4/35): ctags-5.8-2.el6.x86_64.rpm                                                                           | 147 kB     00:00     
(5/35): cvs-1.11.23-16.el6.x86_64.rpm                                                                        | 712 kB     00:01     
(6/35): diffstat-1.51-2.el6.x86_64.rpm                                                                       |  29 kB     00:00     
(7/35): doxygen-1.6.1-6.el6.x86_64.rpm                                                                       | 2.4 MB     00:06     
(8/35): flex-2.5.35-8.el6.x86_64.rpm                                                                         | 286 kB     00:01     
(9/35): gcc-gfortran-4.4.7-4.el6.x86_64.rpm                                                                  | 4.7 MB     00:09     
(10/35): gdb-7.2-60.el6_4.1.x86_64.rpm                                                                       | 2.3 MB     00:06     
(11/35): gettext-0.17-16.el6.x86_64.rpm                                                                      | 1.8 MB     00:05     
(12/35): gettext-devel-0.17-16.el6.x86_64.rpm                                                                | 155 kB     00:00     
(13/35): gettext-libs-0.17-16.el6.x86_64.rpm                                                                 | 112 kB     00:00     
(14/35): indent-2.2.10-7.el6.x86_64.rpm                                                                      | 115 kB     00:01     
(15/35): intltool-0.41.0-1.1.el6.noarch.rpm                                                                  |  58 kB     00:00     
(16/35): libgcj-4.4.7-4.el6.x86_64.rpm                                                                       |  19 MB     00:47     
(17/35): libgfortran-4.4.7-4.el6.x86_64.rpm                                                                  | 265 kB     00:01     
(18/35): patchutils-0.3.1-3.1.el6.x86_64.rpm                                                                 |  95 kB     00:00     
(19/35): perl-Compress-Raw-Zlib-2.021-136.el6.x86_64.rpm                                                     |  69 kB     00:00     
(20/35): perl-Compress-Zlib-2.021-136.el6.x86_64.rpm                                                         |  45 kB     00:00     
(21/35): perl-HTML-Parser-3.64-2.el6.x86_64.rpm                                                              | 109 kB     00:00     
(22/35): perl-HTML-Tagset-3.20-4.el6.noarch.rpm                                                              |  17 kB     00:00     
(23/35): perl-IO-Compress-Base-2.021-136.el6.x86_64.rpm                                                      |  69 kB     00:00     
(24/35): perl-IO-Compress-Zlib-2.021-136.el6.x86_64.rpm                                                      | 135 kB     00:00     
(25/35): perl-XML-Parser-2.36-7.el6.x86_64.rpm                                                               | 224 kB     00:01     
(26/35): perl-libwww-perl-5.833-2.el6.noarch.rpm                                                             | 387 kB     00:02     
(27/35): rcs-5.7-37.el6.x86_64.rpm                                                                           | 173 kB     00:01     
(28/35): redhat-rpm-config-9.0.3-42.el6.centos.noarch.rpm                                                    |  59 kB     00:00     
(29/35): rpm-build-4.8.0-37.el6.x86_64.rpm                                                                   | 127 kB     00:00     
(30/35): subversion-1.6.11-10.el6_5.x86_64.rpm                                                               | 2.3 MB     00:10     
(31/35): subversion-javahl-1.6.11-10.el6_5.x86_64.rpm                                                        | 173 kB     00:00     
(32/35): swig-1.3.40-6.el6.x86_64.rpm                                                                        | 1.1 MB     00:04     
(33/35): systemtap-2.3-4.el6_5.x86_64.rpm                                                                    |  26 kB     00:00     
(34/35): systemtap-client-2.3-4.el6_5.x86_64.rpm                                                             | 3.4 MB     00:36     
(35/35): systemtap-devel-2.3-4.el6_5.x86_64.rpm                                                              | 1.4 MB     00:05     
------------------------------------------------------------------------------------------------------------------------------------
Total                                                                                               275 kB/s |  42 MB     02:37     
Running rpm_check_debug
Running Transaction Test
Transaction Test Succeeded
Running Transaction
  Installing : perl-IO-Compress-Base-2.021-136.el6.x86_64                                                                      1/37 
  Installing : systemtap-devel-2.3-4.el6_5.x86_64                                                                              2/37 
  Installing : 1:perl-Compress-Raw-Zlib-2.021-136.el6.x86_64                                                                   3/37 
  Installing : perl-IO-Compress-Zlib-2.021-136.el6.x86_64                                                                      4/37 
  Installing : perl-Compress-Zlib-2.021-136.el6.x86_64                                                                         5/37 
  Installing : systemtap-client-2.3-4.el6_5.x86_64                                                                             6/37 
  Installing : cvs-1.11.23-16.el6.x86_64                                                                                       7/37 
  Installing : gettext-0.17-16.el6.x86_64                                                                                      8/37 
  Installing : libgcj-4.4.7-4.el6.x86_64                                                                                       9/37 
  Installing : gdb-7.2-60.el6_4.1.x86_64                                                                                      10/37 
  Installing : gettext-libs-0.17-16.el6.x86_64                                                                                11/37 
  Installing : gettext-devel-0.17-16.el6.x86_64                                                                               12/37 
  Installing : perl-HTML-Tagset-3.20-4.el6.noarch                                                                             13/37 
  Installing : perl-HTML-Parser-3.64-2.el6.x86_64                                                                             14/37 
  Installing : perl-libwww-perl-5.833-2.el6.noarch                                                                            15/37 
  Installing : perl-XML-Parser-2.36-7.el6.x86_64                                                                              16/37 
  Installing : libgfortran-4.4.7-4.el6.x86_64                                                                                 17/37 
  Updating   : subversion-1.6.11-10.el6_5.x86_64                                                                              18/37 
  Updating   : subversion-javahl-1.6.11-10.el6_5.x86_64                                                                       19/37 
  Installing : gcc-gfortran-4.4.7-4.el6.x86_64                                                                                20/37 
  Installing : intltool-0.41.0-1.1.el6.noarch                                                                                 21/37 
  Installing : rpm-build-4.8.0-37.el6.x86_64                                                                                  22/37 
  Installing : systemtap-2.3-4.el6_5.x86_64                                                                                   23/37 
  Installing : swig-1.3.40-6.el6.x86_64                                                                                       24/37 
  Installing : redhat-rpm-config-9.0.3-42.el6.centos.noarch                                                                   25/37 
  Installing : indent-2.2.10-7.el6.x86_64                                                                                     26/37 
  Installing : 1:doxygen-1.6.1-6.el6.x86_64                                                                                   27/37 
  Installing : rcs-5.7-37.el6.x86_64                                                                                          28/37 
  Installing : flex-2.5.35-8.el6.x86_64                                                                                       29/37 
  Installing : patchutils-0.3.1-3.1.el6.x86_64                                                                                30/37 
  Installing : byacc-1.9.20070509-7.el6.x86_64                                                                                31/37 
  Installing : cscope-15.6-6.el6.x86_64                                                                                       32/37 
  Installing : ctags-5.8-2.el6.x86_64                                                                                         33/37 
  Installing : diffstat-1.51-2.el6.x86_64                                                                                     34/37 
  Installing : bison-2.4.1-5.el6.x86_64                                                                                       35/37 
  Cleanup    : subversion-javahl-1.6.11-9.el6_4.x86_64                                                                        36/37 
  Cleanup    : subversion-1.6.11-9.el6_4.x86_64                                                                               37/37 
  Verifying  : bison-2.4.1-5.el6.x86_64                                                                                        1/37 
  Verifying  : subversion-javahl-1.6.11-10.el6_5.x86_64                                                                        2/37 
  Verifying  : subversion-1.6.11-10.el6_5.x86_64                                                                               3/37 
  Verifying  : diffstat-1.51-2.el6.x86_64                                                                                      4/37 
  Verifying  : 1:perl-Compress-Raw-Zlib-2.021-136.el6.x86_64                                                                   5/37 
  Verifying  : gettext-devel-0.17-16.el6.x86_64                                                                                6/37 
  Verifying  : ctags-5.8-2.el6.x86_64                                                                                          7/37 
  Verifying  : cscope-15.6-6.el6.x86_64                                                                                        8/37 
  Verifying  : perl-Compress-Zlib-2.021-136.el6.x86_64                                                                         9/37 
  Verifying  : byacc-1.9.20070509-7.el6.x86_64                                                                                10/37 
  Verifying  : gettext-0.17-16.el6.x86_64                                                                                     11/37 
  Verifying  : perl-IO-Compress-Zlib-2.021-136.el6.x86_64                                                                     12/37 
  Verifying  : libgfortran-4.4.7-4.el6.x86_64                                                                                 13/37 
  Verifying  : patchutils-0.3.1-3.1.el6.x86_64                                                                                14/37 
  Verifying  : systemtap-devel-2.3-4.el6_5.x86_64                                                                             15/37 
  Verifying  : perl-IO-Compress-Base-2.021-136.el6.x86_64                                                                     16/37 
  Verifying  : rpm-build-4.8.0-37.el6.x86_64                                                                                  17/37 
  Verifying  : perl-XML-Parser-2.36-7.el6.x86_64                                                                              18/37 
  Verifying  : gcc-gfortran-4.4.7-4.el6.x86_64                                                                                19/37 
  Verifying  : perl-HTML-Tagset-3.20-4.el6.noarch                                                                             20/37 
  Verifying  : flex-2.5.35-8.el6.x86_64                                                                                       21/37 
  Verifying  : rcs-5.7-37.el6.x86_64                                                                                          22/37 
  Verifying  : 1:doxygen-1.6.1-6.el6.x86_64                                                                                   23/37 
  Verifying  : perl-libwww-perl-5.833-2.el6.noarch                                                                            24/37 
  Verifying  : gettext-libs-0.17-16.el6.x86_64                                                                                25/37 
  Verifying  : indent-2.2.10-7.el6.x86_64                                                                                     26/37 
  Verifying  : systemtap-client-2.3-4.el6_5.x86_64                                                                            27/37 
  Verifying  : gdb-7.2-60.el6_4.1.x86_64                                                                                      28/37 
  Verifying  : intltool-0.41.0-1.1.el6.noarch                                                                                 29/37 
  Verifying  : redhat-rpm-config-9.0.3-42.el6.centos.noarch                                                                   30/37 
  Verifying  : swig-1.3.40-6.el6.x86_64                                                                                       31/37 
  Verifying  : libgcj-4.4.7-4.el6.x86_64                                                                                      32/37 
  Verifying  : cvs-1.11.23-16.el6.x86_64                                                                                      33/37 
  Verifying  : systemtap-2.3-4.el6_5.x86_64                                                                                   34/37 
  Verifying  : perl-HTML-Parser-3.64-2.el6.x86_64                                                                             35/37 
  Verifying  : subversion-javahl-1.6.11-9.el6_4.x86_64                                                                        36/37 
  Verifying  : subversion-1.6.11-9.el6_4.x86_64                                                                               37/37 

Installed:
  bison.x86_64 0:2.4.1-5.el6             byacc.x86_64 0:1.9.20070509-7.el6      cscope.x86_64 0:15.6-6.el6                         
  ctags.x86_64 0:5.8-2.el6               cvs.x86_64 0:1.11.23-16.el6            diffstat.x86_64 0:1.51-2.el6                       
  doxygen.x86_64 1:1.6.1-6.el6           flex.x86_64 0:2.5.35-8.el6             gcc-gfortran.x86_64 0:4.4.7-4.el6                  
  gettext.x86_64 0:0.17-16.el6           indent.x86_64 0:2.2.10-7.el6           intltool.noarch 0:0.41.0-1.1.el6                   
  patchutils.x86_64 0:0.3.1-3.1.el6      rcs.x86_64 0:5.7-37.el6                redhat-rpm-config.noarch 0:9.0.3-42.el6.centos     
  rpm-build.x86_64 0:4.8.0-37.el6        swig.x86_64 0:1.3.40-6.el6             systemtap.x86_64 0:2.3-4.el6_5                     

Dependency Installed:
  gdb.x86_64 0:7.2-60.el6_4.1                                      gettext-devel.x86_64 0:0.17-16.el6                               
  gettext-libs.x86_64 0:0.17-16.el6                                libgcj.x86_64 0:4.4.7-4.el6                                      
  libgfortran.x86_64 0:4.4.7-4.el6                                 perl-Compress-Raw-Zlib.x86_64 1:2.021-136.el6                    
  perl-Compress-Zlib.x86_64 0:2.021-136.el6                        perl-HTML-Parser.x86_64 0:3.64-2.el6                             
  perl-HTML-Tagset.noarch 0:3.20-4.el6                             perl-IO-Compress-Base.x86_64 0:2.021-136.el6                     
  perl-IO-Compress-Zlib.x86_64 0:2.021-136.el6                     perl-XML-Parser.x86_64 0:2.36-7.el6                              
  perl-libwww-perl.noarch 0:5.833-2.el6                            systemtap-client.x86_64 0:2.3-4.el6_5                            
  systemtap-devel.x86_64 0:2.3-4.el6_5                            

Updated:
  subversion.x86_64 0:1.6.11-10.el6_5                                                                                               

Dependency Updated:
  subversion-javahl.x86_64 0:1.6.11-10.el6_5                                                                                        


Linux平台上,GCC等工具包的最便捷安装方法,古老的榕树,5-wow.com

郑重声明:本站内容如果来自互联网及其他传播媒体,其版权均属原媒体及文章作者所有。转载目的在于传递更多信息及用于网络分享,并不代表本站赞同其观点和对其真实性负责,也不构成任何其他建议。