Здравствуйте. Проблема не новая, но нагуглить полезного совета к сожалению не смог. суся 11.2, ядро 2.6.31.12-0.1. virtualbox - 3.1.4. При попытке запустить VirtualBox выдает ошибку:
WARNING: The vboxdrv kernel module is not loaded. Either there is no module
available for the current kernel (2.6.31.12-0.1-desktop) or it failed to
load. Please recompile the kernel module and install it by
sudo /etc/init.d/vboxdrv setup
You will not be able to start VMs until this problem is fixed.
WARNING: The compilation of the vboxdrv.ko kernel module failed during the
installation for some reason. Starting a VM will not be possible.
Please consult the User Manual for build instructions.
Запуск от рута /etc/init.d/vboxdrv setup выдает следующее:
Stopping VirtualBox kernel module done
Recompiling VirtualBox kernel module failed
(Look at /var/log/vbox-install.log to find out what went wrong)
в файле vbox-install.log;
make KBUILD_VERBOSE=1 -C /lib/modules/2.6.31.12-0.1-desktop/build SUBDIRS=/tmp/vbox.0 SRCROOT=/tmp/vbox.0 modules
make -C ../../../linux-2.6.31.12-0.1 O=/usr/src/linux-2.6.31.12-0.1-obj/i386/desktop/. modules
make -C /usr/src/linux-2.6.31.12-0.1-obj/i386/desktop \
KBUILD_SRC=/usr/src/linux-2.6.31.12-0.1 \
KBUILD_EXTMOD="/tmp/vbox.0" -f /usr/src/linux-2.6.31.12-0.1/Makefile \
modules
/usr/src/linux-2.6.31.12-0.1/scripts/gcc-version.sh: line 25: gcc: command not found
/usr/src/linux-2.6.31.12-0.1/scripts/gcc-version.sh: line 26: gcc: command not found
/usr/src/linux-2.6.31.12-0.1/arch/x86/Makefile:80: stack protector enabled but no compiler support
make[3]: gcc: Command not found
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.0/.tmp_versions ; rm -f /tmp/vbox.0/.tmp_versions/*
make -f /usr/src/linux-2.6.31.12-0.1/scripts/Makefile.build obj=/tmp/vbox.0
gcc -Wp,-MD,/tmp/vbox.0/linux/.SUPDrv-linux.o.d -nostdinc -isystem -Iinclude -Iinclude2 -I/usr/src/linux-2.6.31.12-0.1/include -I/usr/src/linux-2.6.31.12-0.1/arch/x86/include -include include/linux/autoconf.h -I/tmp/vbox.0 -D__KERNEL__ -Wall -Wundef -Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -Werror-implicit-function-declaration -Wno-format-security -fno-delete-null-pointer-checks -O2 -msoft-float -mregparm=3 -freg-struct-return -march=i686 -ffreestanding -pipe -Wno-sign-compare -fno-omit-frame-pointer -fno-optimize-sibling-calls -fasynchronous-unwind-tables -g -I/lib/modules/2.6.31.12-0.1-desktop/build/include -I/tmp/vbox.0/ -I/tmp/vbox.0/include -I/tmp/vbox.0/r0drv/linux -D__KERNEL__ -DMODULE -DRT_OS_LINUX -DIN_RING0 -DIN_RT_R0 -DIN_SUP_R0 -DVBOX -DRT_WITH_VBOX -DVBOX_WITH_HARDENING -DCONFIG_VBOXDRV_AS_MISC -DRT_ARCH_X86 -DVBOX_WITH_64_BITS_GUESTS -DMODULE -D"KBUILD_STR(s)=#s" -D"KBUILD_BASENAME=KBUILD_STR(SUPDrv_linux)" -D"KBUILD_MODNAME=KBUILD_STR(vboxdrv)" -D"DEBUG_HASH=27" -D"DEBUG_HASH2=27" -c -o /tmp/vbox.0/linux/.tmp_SUPDrv-linux.o /tmp/vbox.0/linux/SUPDrv-linux.c
/bin/sh: gcc: command not found
make[4]: *** [/tmp/vbox.0/linux/SUPDrv-linux.o] Error 127
make[3]: *** [_module_/tmp/vbox.0] Error 2
make[2]: *** [sub-make] Error 2
make[1]: *** [all] Error 2
make: *** [vboxdrv] Error 2
----------
Сначала в логе было что-то про kernel-headers. установил пакет kernel-source. При этом virtualbox OSE, поставленная через YAST запускается без проблем.
Я уже запутался, где я напортачил. Буду очень благодарен за совет.