Installation VirtualBox sur Fedora 17

Résolu/Fermé
Signaler
-
 andykimpe -
Bonjour,

J'ai un souci dans l'installation de VirtualBox.
Quelqu'un peut m'éclairer?


        
[root@HOME01 alex]# rpm -i VirtualBox-4.1-4.1.16_78094_fedora17-1.i686.rpm        

Creating group 'vboxusers'. VM users must be member of that group!        

No precompiled module for this kernel found -- trying to build one. Messages        
emitted during module compilation will be logged to /var/log/vbox-install.log.        

Stopping VirtualBox kernel modules                         [  OK  ]  
Uninstalling old VirtualBox DKMS kernel modules            [  OK  ]  
Trying to register the VirtualBox kernel modules using DKMSError! Bad return status for module build on kernel: 3.4.0-1.fc17.x86_64 (x86_64)  
Consult /var/lib/dkms/vboxhost/4.1.16/build/make.log for more information.  
                                                           [ÉCHOUÉ]  
  (Failed, trying without DKMS)  
Recompiling VirtualBox kernel modules                      [ÉCHOUÉ]  
  (Look at /var/log/vbox-install.log to find out what went wrong)    
       
[root@HOME01 alex]# cat /var/log/vbox-install.log      
Makefile:172: *** Error: unable to find the sources of your current Linux kernel. Specify KERN_DIR=<directory> and run Make again. Arrêt.      

[root@HOME01 alex]# KERN_DIR=/usr/src/kernels/'uname -r'    

[root@HOME01 alex]# /etc/init.d/vboxdrv setup    
Stopping VirtualBox kernel modules                         [  OK  ]  
Uninstalling old VirtualBox DKMS kernel modules            [  OK  ]  
Trying to register the VirtualBox kernel modules using DKMSError! Bad return status for module build on kernel: 3.4.0-1.fc17.x86_64 (x86_64)  
Consult /var/lib/dkms/vboxhost/4.1.16/build/make.log for more information.  
                                                           [ÉCHOUÉ]  
  (Failed, trying without DKMS)  
Recompiling VirtualBox kernel modules                      [ÉCHOUÉ]  
  (Look at /var/log/vbox-install.log to find out what went wrong)  

[root@HOME01 alex]# cat /var/log/vbox-install.log      

Uninstalling modules from DKMS
  removing old DKMS module vboxhost version  4.1.16

------------------------------
Deleting module version: 4.1.16
completely from the DKMS tree.
------------------------------
Done.
Attempting to install using DKMS

Creating symlink /var/lib/dkms/vboxhost/4.1.16/source ->
                 /usr/src/vboxhost-4.1.16

DKMS: add completed.

Kernel preparation unnecessary for this kernel.  Skipping...

Building module:
cleaning build area....
make KERNELRELEASE=3.4.0-1.fc17.x86_64 -C /lib/modules/3.4.0-1.fc17.x86_64/build M=/var/lib/dkms/vboxhost/4.1.16/build....(bad exit status: 2)
Failed to install using DKMS, attempting to install without
make KBUILD_VERBOSE=1 SUBDIRS=/tmp/vbox.0 SRCROOT=/tmp/vbox.0 CONFIG_MODULE_SIG= -C /usr/src/kernels/3.4.0-1.fc17.x86_64 modules
/usr/src/kernels/3.4.0-1.fc17.x86_64/arch/x86/Makefile:81: stack protector enabled but no compiler support
make[1]: gcc : commande introuvable
test -e include/generated/autoconf.h -a -e include/config/auto.conf || (	\
echo;								\
echo "  ERROR: Kernel configuration is invalid.";		\
echo "         include/generated/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 scripts/Makefile.build obj=/tmp/vbox.0
  gcc -Wp,-MD,/tmp/vbox.0/linux/.SUPDrv-linux.o.d  -nostdinc -isystem  -I/usr/src/kernels/3.4.0-1.fc17.x86_64/arch/x86/include -Iarch/x86/include/generated -Iinclude  -include /usr/src/kernels/3.4.0-1.fc17.x86_64/include/linux/kconfig.h -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 -m64 -mno-red-zone -mcmodel=kernel -maccumulate-outgoing-args -pipe -Wno-sign-compare -fno-asynchronous-unwind-tables -fno-omit-frame-pointer -fno-optimize-sibling-calls -g -pg -include /tmp/vbox.0/include/VBox/SUPDrvMangling.h -I/usr/src/kernels/3.4.0-1.fc17.x86_64/include -I/tmp/vbox.0/ -I/tmp/vbox.0/include -I/tmp/vbox.0/r0drv/linux -I/tmp/vbox.0/vboxdrv/ -I/tmp/vbox.0/vboxdrv/include -I/tmp/vbox.0/vboxdrv/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_AMD64 -DVBOX_WITH_64_BITS_GUESTS  -DMODULE  -D"KBUILD_STR(s)=#s" -D"KBUILD_BASENAME=KBUILD_STR(SUPDrv_linux)"  -D"KBUILD_MODNAME=KBUILD_STR(vboxdrv)" -c -o /tmp/vbox.0/linux/SUPDrv-linux.o /tmp/vbox.0/linux/SUPDrv-linux.c
/bin/sh: gcc : commande introuvable
make[2]: *** /tmp/vbox.0/linux/SUPDrv-linux.o Erreur 127
make[1]: *** [_module_/tmp/vbox.0] Erreur 2
make: *** [vboxdrv] Erreur 2

      


Je tourne en rond ...

2 réponses

j'ai le même problème avec la version 4.2 sauf que moi gcc et déjà installer

voici les commande que j'ai exécuter si quelqu'un peux m'aider

cd /etc/yum.repos.d/ 
wget http://download.virtualbox.org/virtualbox/rpm/fedora/virtualbox.repo 
yum -y update 
yum -y install binutils gcc make patch libgomp glibc-headers glibc-devel kernel-headers kernel-devel dkms 
yum -y install VirtualBox-4.2 
Creating group 'vboxusers'. VM users must be member of that group!         

No precompiled module for this kernel found -- trying to build one. Messages         
emitted during module compilation will be logged to /var/log/vbox-install.log.         

Stopping VirtualBox kernel modules                         [  OK  ]   
Uninstalling old VirtualBox DKMS kernel modules            [  OK  ]   
Trying to register the VirtualBox kernel modules using DKMSError! Bad return status for module build on kernel: 3.4.0-1.fc17.x86_64 (x86_64)   
Consult /var/lib/dkms/vboxhost/4.1.16/build/make.log for more information.   
                                                           [ÉCHOUÉ]   
  (Failed, trying without DKMS)   
Recompiling VirtualBox kernel modules                      [ÉCHOUÉ]   
  (Look at /var/log/vbox-install.log to find out what went wrong)     
        
[root@ks363075]# cat /var/log/vbox-install.log       
Makefile:172: *** Error: unable to find the sources of your current Linux kernel. Specify KERN_DIR=<directory> and run Make again. Arrêt.       

[root@ks363075]# KERN_DIR=/usr/src/kernels/'uname -r'     

[root@ks363075]# /etc/init.d/vboxdrv setup     
Stopping VirtualBox kernel modules                         [  OK  ]   
Uninstalling old VirtualBox DKMS kernel modules            [  OK  ]   
Trying to register the VirtualBox kernel modules using DKMSError! Bad return status for module build on kernel: 3.4.0-1.fc17.x86_64 (x86_64)   
Consult /var/lib/dkms/vboxhost/4.1.16/build/make.log for more information.   
                                                           [ÉCHOUÉ]   
  (Failed, trying without DKMS)   
Recompiling VirtualBox kernel modules                      [ÉCHOUÉ]   
  (Look at /var/log/vbox-install.log to find out what went wrong)   

[root@ks363075]# cat /var/log/vbox-install.log 
Makefile:172: *** Error: unable to find the sources of your current Linux kernel. Specify KERN_DIR=<directory> and run Make again. Arrêt.       


le même problème ce répète aussi bien sur fédora 17 que sur centos 6.3
1
Ok résolu ...

Je suis stupide, mais je laisse pour ceux que ça poura aider.

/bin/sh: gcc : commande introuvable


#yum install gcc

Je n'ai pas imaginé une seule seconde que Fedora était fourni de base sans gcc.
0