1、安装 输入下面的命令安装基本开发工具包: [root@localhost ~] # yum groupinstall “Development Tools” 输入y 2、查看 (1)用命令来验证是否安装成功: [root@localhost ~] # whereis gcc gcc: /usr/bin/gcc /usr/lib/gcc /usr/libexec/gcc /usr/share/man/man1/gcc.1.gz (2)或者通过gcc –version选项来查看gcc的版本号: [root@localhost ~] # gcc –version gcc (GCC) 4.8.5