RHEL: This system is currently not set up to build kernel modules
问题 I am trying to install virtualbox5.2 on a RHEL 7 VM When I try to rebuild kernels modules I get the following error: [root@myserver~]# /usr/lib/virtualbox/vboxdrv.sh setup vboxdrv.sh: Stopping VirtualBox services. vboxdrv.sh: Building VirtualBox kernel modules. This system is currently not set up to build kernel modules. Please install the Linux kernel "header" files matching the current kernel for adding new hardware support to the system. The distribution packages containing the headers are