centos6.4安装GCC
Posted singularity
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了centos6.4安装GCC相关的知识,希望对你有一定的参考价值。
1.
- Last login: Mon Aug 4 11:46:15 2014 from 10.3.7.128
- [[email protected] ~]$ ls
- hadoop jdk1.7.0_45 jdk-7u45-linux-x64.gz
- [[email protected] ~]$ gcc --version
- -bash: gcc: command not found
- [[email protected] ~]$ yum -y install gcc gcc-c++ autoconf make
- Loaded plugins: fastestmirror
- You need to be root to perform this command.
- [[email protected] ~]$ su -
- 密码:
- [[email protected] ~]# 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
2.
- gcc --version
- gcc (GCC) 4.4.7 20120313 (Red Hat 4.4.7-4)
- Copyright ? 2010 Free Software Foundation, Inc.
以上是关于centos6.4安装GCC的主要内容,如果未能解决你的问题,请参考以下文章