1: 运行虚拟机时,提示'/etc/init.d/vboxdrv setup'
log:
Makefile:183: *** Error: unable to find the sources of your current Linux kernel. Specify KERN_DIR=<directory> and run Make again. Stop.
Makefile:183: *** Error: unable to find the sources of your current Linux kernel. Specify KERN_DIR=<directory> and run Make again. Stop.
need to install kernel source matched your current kernel
因为需要内核源码.安装的源码版本要与正在运行的内核的版本一至
A:uname -a
B: yum install kernel*****
log:
Makefile:183: *** Error: unable to find the sources of your current Linux kernel. Specify KERN_DIR=<directory> and run Make again. Stop.
Makefile:183: *** Error: unable to find the sources of your current Linux kernel. Specify KERN_DIR=<directory> and run Make again. Stop.
need to install kernel source matched your current kernel
因为需要内核源码.安装的源码版本要与正在运行的内核的版本一至
A:uname -a
B: yum install kernel*****
本文介绍了解决虚拟机中提示缺少当前Linux内核源码的问题。通过使用uname命令获取内核版本信息,并利用yum命令安装匹配版本的内核源码,确保虚拟机正常运行。
430

被折叠的 条评论
为什么被折叠?



