centos报这个错误是因为没有安装内核开发包,运行如下命令安装
yum install kernel-devel
如果还有报错,把名字指定一下
cd /lib/modules/3.10.0-1127.el7.x86_64/
rm -f build
ln -s /usr/src/kernels/3.10.0-1160.59.1.el7.x86_64/ build
标签:1160,x86,lib,3.10,64,build,el7
来源: https://www.cnblogs.com/studywithallofyou/p/16528321.html