centos6.4安装GCC

Posted singularity

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了centos6.4安装GCC相关的知识,希望对你有一定的参考价值。

1.

  1. Last login: Mon Aug  4 11:46:15 2014 from 10.3.7.128  
  2. [[email protected] ~]$ ls  
  3. hadoop  jdk1.7.0_45  jdk-7u45-linux-x64.gz  
  4. [[email protected] ~]$ gcc --version  
  5. -bash: gcc: command not found  
  6. [[email protected] ~]$ yum -y install gcc gcc-c++ autoconf make  
  7. Loaded plugins: fastestmirror  
  8. You need to be root to perform this command.  
  9. [[email protected] ~]$ su -  
  10. 密码:  
  11. [[email protected] ~]# 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.

 

以上是关于centos6.4安装GCC的主要内容,如果未能解决你的问题,请参考以下文章

CentOS6.4-64位的安装

CentOS6.4安装Zookeeper-3.4.12图解教程

CentOS6.4 安装MongoDB

centos6.4下安装python3.6.1

Centos6.4安装配置sendmail

CentOS6.4安装