centos6.4安装GCC

1.

  1. Last login: Mon Aug  4 11:46:15 2014 from 10.3.7.128  
  2. [jifeng@jifeng04 ~]$ ls  
  3. hadoop  jdk1.7.0_45  jdk-7u45-linux-x64.gz  
  4. [jifeng@jifeng04 ~]$ gcc --version  
  5. -bash: gcc: command not found  
  6. [jifeng@jifeng04 ~]$ yum -y install gcc gcc-c++ autoconf make  
  7. Loaded plugins: fastestmirror  
  8. You need to be root to perform this command.  
  9. [jifeng@jifeng04 ~]$ su -  
  10. 密码:  
  11. [root@jifeng04 ~]# yum -y install gcc gcc-c++ autoconf make  
  12. Loaded plugins: fastestmirror  
  13. Loading mirror speeds from cached hostfile  
  14.  * base: mirrors.cug.edu.cn  
  15.  * extras: mirrors.cug.edu.cn  
  16.  * updates: mirrors.cug.edu.cn  
  17. base                                                                                             | 3.7 kB     00:00       
  18. base/primary_db                                                                                  | 4.4 MB     00:05       
  19. extras                                                                                           | 3.4 kB     00:00       
  20. extras/primary_db                                                                                |  19 kB     00:00       
  21. updates                                                                                          | 3.4 kB     00:00       
  22. http://mirrors.cug.edu.cn/centos/6.5/updates/x86_64/repodata/f64710214d4838990048125f99490af14b987819c8c2e7aea579d0341cc9ae21

2.

  1. gcc --version  
  2. gcc (GCC) 4.4.7 20120313 (Red Hat 4.4.7-4)  
  3. Copyright ? 2010 Free Software Foundation, Inc.

 

posted @ 2017-11-13 19:01  丁培飞  阅读(408)  评论(0编辑  收藏  举报