virtualbox安装centos 6 增强工具提示“Unable to find the kernel source tree for the currently running kernel”
2013-10-24 01:33
1166 查看
virtualbox安装centos 6之增强工具时,在错误日志中会提示:unable to find the source of your current linux kernel
#sudo sh ./VBoxLinuxAdditions.run
提示失败
Building the VirtualBox Guest Additions kernel modules [FAILED]
Your system does not seem to be set up to build kernel modules.
Look at /var/log/vboxadd-install.log to find out what went wrong.
Once you have corrected it, you can run /etc/init.d/vboxadd setup to build them.
#gedit /var/log/vboxadd-install.log 内容
Makefile:23: *** Error: unable to find the sources of your current Linux kernel. Specify KERN_DIR=<directory> and run Make again.. Stop.
Creating user for the Guest Additions.
Creating udev rule for the Guest Additions kernel module.
安装GCC
#yum install gcc
# yum install gcc kernel-devel kernel-headers
重启。
再次安装VBoxLinuxAdditions,OK。
注意需要以Root身份运行,否则会提示权限不够。
即便按此操作依旧安装失败。继续找原因。
需要设置KERN_DIR环境变量
好吧,安装的KERN版本为2.6.32-358.23.2.el6.x86_64,但不知为何系统变量即使设置为如上目录,Linux依旧寻找这个版本
2.6.32-358.el6.x86_64
试着将它复制一份,到2.6.32-358.el6.x86_64目录,再次运行,安装成功。!
#sudo sh ./VBoxLinuxAdditions.run
提示失败
Building the VirtualBox Guest Additions kernel modules [FAILED]
Your system does not seem to be set up to build kernel modules.
Look at /var/log/vboxadd-install.log to find out what went wrong.
Once you have corrected it, you can run /etc/init.d/vboxadd setup to build them.
#gedit /var/log/vboxadd-install.log 内容
Makefile:23: *** Error: unable to find the sources of your current Linux kernel. Specify KERN_DIR=<directory> and run Make again.. Stop.
Creating user for the Guest Additions.
Creating udev rule for the Guest Additions kernel module.
安装GCC
#yum install gcc
# yum install gcc kernel-devel kernel-headers
重启。
再次安装VBoxLinuxAdditions,OK。
注意需要以Root身份运行,否则会提示权限不够。
即便按此操作依旧安装失败。继续找原因。
需要设置KERN_DIR环境变量
好吧,安装的KERN版本为2.6.32-358.23.2.el6.x86_64,但不知为何系统变量即使设置为如上目录,Linux依旧寻找这个版本
2.6.32-358.el6.x86_64
试着将它复制一份,到2.6.32-358.el6.x86_64目录,再次运行,安装成功。!
相关文章推荐
- linux里面编译安装显卡驱动失败:ERROR:Unable to find the kernel source tree for the currently running kernel.
- redhat 6.4 安装VirtualBox自动增强功能功:unable to find the sources of your current Linux kernel
- VirtualBox安装VBoxLinuxAdditions错误:unable to find the sources of your current linux kernel
- VirtualBox安装OS异常提示:Unable to boot - please use a kernel appropriate for your CPU.
- kali 安装virtualbox tools出错ERROR: UNABLE TO FIND THE SOURCES OF YOUR CURRENT LINUX KERNEL.
- VirtualBox安装VBoxLinuxAdditions错误:unable to find the sources of your current linux kernel
- VirtualBox安装VBoxLinuxAdditions错误:unable to find the sources of your current linux kernel
- virtualbox安装增强功能时The headers for the current running kernel were not found
- 解决vmware fusion + centos 7安装vmtools时提示The path "" is not a valid path to the xxx kernel headers.
- Unable to start debugging on the web server. The IIS worker process for the launched URL is not currently running
- Installing CUDA 7.5 on CentOS 7 - Unable to locate the kernel source
- 修复VirtualBox "This kernel requires the following features not present on the CPU: pae Unable to boot – please use a kernel appropriate for your CPU"(安装深度Linux的时候就需要)
- 宿主系统为Ubuntu 14,CentOS 6.5 安装VirtualBox增强工具失败:Building the OpenGL support module[FAILED]
- 解决在安装VMware tools提示“Unable to find the database file /etc/vmware-tools/location”的问题
- yum安装软件时提示another app is currently holding the yum lock;waiting for it to exit
- centos 7安装vmtools时提示The path "" is not a valid path to the xxx kernel headers.
- VirtualBox安装虚拟机-Unable to boot – please use a kernel appropriate for your CPU
- VirtualBox安装增强工具时:Unable to install guest additions: unknown filesystem type 'iso9660'
- Unable to find the binary installation directory,安装VMware Tools提示错误
- 关于虚拟机安装 linux centOS Unable to boot – please use a kernel appropriate for your CPU