[问题]VirtualBox安装失败

Kvm、VMware、Virtualbox、Xen、Qemu 等
回复
windzhy
帖子: 11
注册时间: 2008-08-18 0:16
送出感谢: 0
接收感谢: 0

[问题]VirtualBox安装失败

#1

帖子 windzhy » 2008-08-21 21:49

An old installation of VirtualBox was found. To install this package the old package has to be removed first. Have a look at /etc/vbox/vbox.cfg to determine the installation directory of the previous installation. After uninstalling the old package remove the file /etc/vbox/vbox.cfg.


VirtualBox will not start until this problem is fixed. Please consult /var/log/vbox-install.log to find out why the kernel module does not compile. Most probably the kernel sources were not found. Install them and execute

/etc/init.d/vboxdrv setup


as root.


我的/var/log/vbox-install.log:
ake KBUILD_VERBOSE=1 -C /lib/modules/2.6.24-21-generic/build SUBDIRS=/tmp/vbox.7 SRCROOT=/tmp/vbox.7 modules
make[1]: 正在进入目录 `/usr/src/linux-headers-2.6.24-21-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 /tmp/vbox.7/.tmp_versions ; rm -f /tmp/vbox.7/.tmp_versions/*
make -f scripts/Makefile.build obj=/tmp/vbox.7
gcc -m32 -Wp,-MD,/tmp/vbox.7/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-21-generic/build/include -I/tmp/vbox.7/ -I/tmp/vbox.7/include -I/tmp/vbox.7/r0drv/linux -D__KERNEL__ -DMODULE -D__LINUX__ -DIN_RING0 -DIN_RT_R0 -DIN_SUP_R0 -DCONFIG_VBOXDRV_AS_MISC -D__X86__ -DMODULE -D"KBUILD_STR(s)=#s" -D"KBUILD_BASENAME=KBUILD_STR(SUPDrv_linux)" -D"KBUILD_MODNAME=KBUILD_STR(vboxdrv)" -c -o /tmp/vbox.7/linux/.tmp_SUPDrv-linux.o /tmp/vbox.7/linux/SUPDrv-linux.c
In file included from /tmp/vbox.7/include/iprt/types.h:55,
from /tmp/vbox.7/include/VBox/types.h:25,
from /tmp/vbox.7/SUPDRV.h:31,
from /tmp/vbox.7/linux/SUPDrv-linux.c:24:
include/linux/types.h:40: 错误: typedef‘uintptr_t’重定义
/tmp/vbox.7/include/iprt/stdint.h:119: 错误: ‘uintptr_t’的上一个声明在此
在包含自 include/linux/thread_info.h:33 的文件中,
从 include/linux/preempt.h:9,
从 include/linux/spinlock.h:49,
从 /tmp/vbox.7/SUPDRV.h:82,
从 /tmp/vbox.7/linux/SUPDrv-linux.c:24:
include/linux/bitops.h:6:1: 警告: “BIT”重定义
在包含自 /tmp/vbox.7/include/VBox/cdefs.h:24 的文件中,
从 /tmp/vbox.7/SUPDRV.h:30,
从 /tmp/vbox.7/linux/SUPDrv-linux.c:24:
/tmp/vbox.7/include/iprt/cdefs.h:959:1: 警告: 这是先前定义的位置
make[2]: *** [/tmp/vbox.7/linux/SUPDrv-linux.o] 错误 1
make[1]: *** [_module_/tmp/vbox.7] 错误 2
make[1]:正在离开目录 `/usr/src/linux-headers-2.6.24-21-generic'
make: *** [vboxdrv] 错误 2



怎么解决?在线等
附件
.png
回复

回到 “虚拟机和虚拟化”