运行 sudo /etc/init.d/vboxdrv时出现错误,要求运行 sudo /etc/init.d/vbox/drv setup, 按照命令运行了以后出现如下信息:
* Stopping VirtualBox kernel module vboxdrv [ OK ]
* Recompiling VirtualBox kernel module vboxdrv
* Look at /var/log/vbox-install.log to find out what went wrong
/var/log/vbox-install.log内容如下:
make KBUILD_VERBOSE=1 -C /lib/modules/2.6.24-16-generic/build SUBDIRS=/var/TMP/vbox.1 SRCROOT=/var/TMP/vbox.1 modules
make[1]: Entering directory `/usr/src/linux-headers-2.6.24-16-generic'
test -e include/linux/autoconf.h -a -e include/config/auto.conf || ( \
echo; \
echo " ERROR: Kernel configuration is invalid."; \
echo " include/linux/autoconf.h or include/config/auto.conf are missing."; \
echo " Run 'make oldconfig && make prepare' on kernel src to fix it.";
\
echo; \
/bin/false)
mkdir -p /var/TMP/vbox.1/.tmp_versions ; rm -f /var/TMP/vbox.1/.tmp_versions/*
make -f scripts/Makefile.build obj=/var/TMP/vbox.1
gcc -m32 -Wp,-MD,/var/TMP/vbox.1/linux/.SUPDrv-linux.o.d -nostdinc -isystem /usr/lib/gcc/i486-linux-gnu/4.2.3/include -D__KERNEL__ -Iinclude -include include/linux/autoconf.h -Wall -Wundef -Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -Werror-implicit-function-declaration -O2 -pipe -msoft-float -mregparm=3 -freg-struct-return -mpreferred-stack-boundary=2 -march=i586 -mtune=generic -ffreestanding -maccumulate-outgoing-args -Iinclude/asm-x86/mach-default -fomit-frame-pointer -g -fno-stack-protector -Wdeclaration-after-statement -Wno-pointer-sign -I/lib/modules/2.6.24-16-generic/build/include -I/var/TMP/vbox.1/ -I/var/TMP/vbox.1/include -I/var/TMP/vbox.1/r0drv/linux -D__KERNEL__ -DMODULE -DRT_OS_LINUX -DIN_RING0 -DIN_RT_R0 -DIN_SUP_R0 -DCONFIG_VBOXDRV_AS_MISC -DRT_ARCH_X86 -DVBOX_WITHOUT_IDT_PATCHING -DUSE_NEW_OS_INTERFACE_FOR_MM -DMODULE -D"KBUILD_STR(s)=#s" -D"KBUILD_BASENAME=KBUILD_STR(SUPDrv_linux)" -D"KBUILD_MODNAME=KBUILD_STR(vboxdrv)" -c -o /var/TMP/vbox.1/linux/.tmp_SUPDrv-linux.o /var/TMP/vbox.1/linux/SUPDrv-linux.c
In file included from /var/TMP/vbox.1/include/iprt/types.h:72,
from /var/TMP/vbox.1/include/VBox/types.h:21,
from /var/TMP/vbox.1/SUPDRV.h:26,
from /var/TMP/vbox.1/linux/SUPDrv-linux.c:22:
include/linux/types.h:40: 错误: typedef‘uintptr_t’重定义
/var/TMP/vbox.1/include/iprt/stdint.h:118: 错误: ‘uintptr_t’的上一个声明在此
在包含自 include/linux/thread_info.h:33 的文件中,
从 include/linux/preempt.h:9,
从 include/linux/spinlock.h:49,
从 /var/TMP/vbox.1/SUPDRV.h:87,
从 /var/TMP/vbox.1/linux/SUPDrv-linux.c:22:
include/linux/bitops.h:6:1: 警告: “BIT”重定义
在包含自 /var/TMP/vbox.1/include/VBox/cdefs.h:20 的文件中,
从 /var/TMP/vbox.1/SUPDRV.h:25,
从 /var/TMP/vbox.1/linux/SUPDrv-linux.c:22:
/var/TMP/vbox.1/include/iprt/cdefs.h:1042:1: 警告: 这是先前定义的位置
make[2]: *** [/var/TMP/vbox.1/linux/SUPDrv-linux.o] 错误 1
make[1]: *** [_module_/var/TMP/vbox.1] 错误 2
make[1]: Leaving directory `/usr/src/linux-headers-2.6.24-16-generic'
make: *** [vboxdrv] 错误 2
(END)
偶看不懂,请高人指点。谢了先!
[问题]sudo /etc/init.d/vboxdrv setup 错误,请帮忙看一下?
-
- 帖子: 541
- 注册时间: 2007-05-19 16:36
- sevk
- 帖子: 2060
- 注册时间: 2007-05-08 16:26
- 系统: arch
- 来自: 火星内核某分子内某原子核内
- 联系:
- weive
- 帖子: 3236
- 注册时间: 2007-10-21 18:36
- 来自: 汕头/广东/中国
- weive
- 帖子: 3236
- 注册时间: 2007-10-21 18:36
- 来自: 汕头/广东/中国
- shanliang8008
- 帖子: 1362
- 注册时间: 2007-07-16 19:43
- 来自: tangshan
- love214925
- 帖子: 221
- 注册时间: 2008-07-21 0:26
- 来自: 郑州-北环-华北水利水电学院
Re: [问题]sudo /etc/init.d/vboxdrv setup 错误,请帮忙看一下?
还关心不?我好像要运行两次那个命令 你是不是用的虚拟机?