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