VirtualBOX: unable to find the include directory for your current Linux kernel

问题描述:

在安装VirtualBox的过程中报如下错误:

cba001:/home/jiajia/tools/VirtualBox/bin/src # make install
make[1]: Entering directory `/home/jiajia/tools/VirtualBox/bin/src/vboxdrv'
Makefile:170: *** Error: unable to find the include directory for your current Linux kernel. Specify KERN_INCL=<directory> and run Make again.  Stop.
make[1]: Leaving directory `/home/jiajia/tools/VirtualBox/bin/src/vboxdrv'
make: *** [install] Error 2

原因分析:

通过错误可以看出是系统中不包含linux内核源代码导致的

 

方法解决:

1. Yast -> software -> software management -> search "kernel"

2. 选择安装"kernel-source"

你可能感兴趣的:(linux,search,include,makefile,linux内核)