LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Fedora (https://www.linuxquestions.org/questions/fedora-35/)
-   -   "No precompiled module for this kernel found" (https://www.linuxquestions.org/questions/fedora-35/no-precompiled-module-for-this-kernel-found-655307/)

licknriz 07-12-2008 09:48 AM

"No precompiled module for this kernel found"
 
Trying to install Virtual Box on Fedora 9 (2.6.25.9-76.fc9.i686) and receiving the following error:

Code:

[root@localhost Download]# rpm -ivh VirtualBox-1.6.2_31466_fedora9-1.i586.rpm
Preparing...                ########################################### [100%]
  1:VirtualBox            ########################################### [100%]

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.

Compilation of the kernel module FAILED! 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 are not found.
Install them and execute

  /etc/init.d/vboxdrv setup

as root.

Edit: The /var/log/vbox-install.log says:

Quote:

Makefile:127: *** Error: unable to find the sources of your current Linux kernel. Specify KERN_DIR=<directory> and run Make again. Stop.
I'm a complete newbie and still learning all the great things about Linux - so please forgive me if I am slow to understand. I will appreciate any help/info!

whansard 07-12-2008 12:43 PM

you need to install the kernel source for your current running kernel.

rldiss 07-12-2008 02:08 PM

Install the kernel-devel package first, and then you should be able to install VirtualBox. Do a "yum -y install kernel-devel" from the command-line as root.

lazlow 07-12-2008 04:28 PM

You MIGHT need to install kernel-headers as well as kernel-devel. Remember these have to be the exact same ones as your running kernel.

licknriz 07-13-2008 11:14 AM

Works!
 
Thanks very much for the responses, solution and plain English :)

John VV 07-15-2008 12:30 AM

Quote:

yum -y install
Why is it that people insist on using the -y option
get out of that habit or you may find you ,by mistake, run
yum -y remove glibc
and remove 50% of fedora 1412 packages will be removed


All times are GMT -5. The time now is 03:02 AM.