LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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!

Notices

Reply
 
Search this Thread
Old 05-15-2009, 03:17 PM   #1
Silvr
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
make modules
make modules_install install
mv -r 2.6.29.2 /usr/src
ln -s 2.6.29.2 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/2.6.29.2/build or lib/modules/2.6.29.2/source."

I made a new symlink to changing lib/modules/2.6.29.2/build and ~/source to /usr/src/2.6.29.2 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
GlennsPref
Senior Member
 
Registered: Apr 2004
Location: Brisbane, Australia
Distribution: Mageia Studio-13.37 Kubuntu.
Posts: 3,325
Blog Entries: 33

Rep: Reputation: 199Reputation: 199
Hi, I think the symlink you need is /usr/src/2.6.29.2(kernel name) to /usr/src/linux

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

Regards Glenn
 
  


Reply

Tags
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 2.6.16.1 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 01:48 PM.

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