Register a domain and help support LQ
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, 03: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 03:48 PM.
Old 05-15-2009, 06:52 PM   #2
Senior Member
Registered: Apr 2004
Location: Brisbane, Australia
Posts: 3,357
Blog Entries: 33

Rep: Reputation: 216Reputation: 216Reputation: 216
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 09:55 AM
need kernel-source/headers Foress_89 Linux - Hardware 2 10-04-2005 06:22 AM
do i need kernel source or headers zuessh Debian 9 08-20-2005 02:12 PM
how to create kernel-headers? sh4d0w13 Debian 3 06-23-2005 02:34 AM
Kernel Source and Headers Seventh_Warrior Linux - Software 8 04-10-2004 02:59 AM

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

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