- 环境
环境
环境基于centos8.3
先安装kernel-devel
yum install kernel-devel -y
删除不存在的build
rm -rf /lib/modules/4.18.0-240.el8.x86_64/build
ln -s /usr/src/kernels/4.18.0-240.el8.x86_64/ /lib/modules/4.18.0-240.el8.x86_64/build
Ubuntu:
apt install libelf-dev
apt install libssl-dev
CentOS:
yum install elfutils-libelf-devel -y