1.安装Perl.
2.如果提示
The path "" is not a valid path to the 3.10.0-229.el7.x86_64 kernel headers.
Would you like to change it? [yes]
运行
yum remove kernal-headers
把原有的kernal-headers卸载掉,需要注意的是yum可能同时会把gcc的部分包也一同卸载掉,这时再次安装gcc
3.安装gcc.
yum install gcc
接着安装kernel-headers-3.10.0-229.el7.x86_64.rpm和kernel-devel-3.10.0-229.el7.x86_64.rpm
如果不能找到相应版本的header,可以运行yum install "kernel-devel-uname-r == $(uname -r)"自动搜索对应的内核header自行安装