六狼论坛

 找回密码
 立即注册

QQ登录

只需一步,快速开始

新浪微博账号登陆

只需一步,快速开始

搜索
查看: 89|回复: 0

Getting CentOS kernel sources to build VirtualBox kernel module

[复制链接]

升级  3.67%

63

主题

63

主题

63

主题

举人

Rank: 3Rank: 3

积分
211
 楼主| 发表于 2013-1-28 22:28:14 | 显示全部楼层 |阅读模式
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)

/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.


method:
as root

# yum groupinstall "Development Tools"# yum groupinstall "Development Libraries"# yum install unifdef rpm-buildexport KERN_DIR=/usr/src/kernels/2.6.18-164.15.1.el5-i686/sh ./VBoxLinuxAdditions-x86.run
您需要登录后才可以回帖 登录 | 立即注册 新浪微博账号登陆

本版积分规则

快速回复 返回顶部 返回列表