Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 05-15-2009, 04:17 PM   #1
LQ Newbie
Registered: May 2009
Posts: 2

Rep: Reputation: 0
Where to put kernel source and create headers

So I built a custom kernel and installed it with:

make modules
make modules_install install
mv -r /usr/src
ln -s linux

Now I am trying to install a module (VirtualBox) and it cannot create the module. It says "the kernel source cannot be found at /lib/modules/ or lib/modules/"

I made a new symlink to changing lib/modules/ and ~/source to /usr/src/ but my module still will not build. Is there something else I am supposed to do?

Last edited by Silvr; 05-15-2009 at 04:48 PM.
Old 05-15-2009, 07:52 PM   #2
Senior Member
Registered: Apr 2004
Location: Brisbane, Australia
Distribution: pclinuxos slackware64 tails kali
Posts: 3,372
Blog Entries: 33

Rep: Reputation: 217Reputation: 217Reputation: 217
Hi, I think the symlink you need is /usr/src/ name) to /usr/src/linux

on my box...
ln -s /usr/src/kernel-rt- /usr/src/linux
fix vbox errors with...
cd /usr/src/linux
make prepare
see how you go.

Regards Glenn


build, headers, kernel, module, source

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
kernel source/headers dave`2005 Slackware 19 04-08-2006 10:55 AM
need kernel-source/headers Foress_89 Linux - Hardware 2 10-04-2005 07:22 AM
do i need kernel source or headers zuessh Debian 9 08-20-2005 03:12 PM
how to create kernel-headers? sh4d0w13 Debian 3 06-23-2005 03:34 AM
Kernel Source and Headers Seventh_Warrior Linux - Software 8 04-10-2004 03:59 AM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 03:27 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration