一
安装gcc:
$yum install gcc gcc-c++
二
1. Update the kernel:
$ yum update kernel -y
2. Install the kernel-headers, kernel-devel and other required packages:
$ yum install kernel-headers kernel-devel gcc make -y 3. Reboot the server to make sure it load to the new kernel:
$ init 6 4. The kernel version has been updated including the kernel-headers and kernel-devel:
$uname -r 2.6.32-71.29.1.el6.x86_64 $rpm -qa|grep –e kernel-headers –e kernel-devel kernel-headers-2.6.32-71.29.1.el6.x86_64 kernel-devel-2.6.32-71.29.1.el6.x86_64