日期:2014-05-16  浏览次数:20855 次

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-lib