Download your favorite Linux distribution at LQ ISO.
Go Back > Forums > Linux Forums > Linux - General
User Name
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.


  Search this Thread
Old 10-16-2005, 10:40 AM   #1
Registered: Jan 2005
Distribution: Mandrake 10.1 with kernel 2.6.10
Posts: 60

Rep: Reputation: 15
Kernel Source Location

I'm trying to compile a linux kernel module that I created but i'm unable to locate my kernel source because I installed a fresh new version of Linux on my Mandrake system.

Usually, the source would be located in /usr/src/(LINUX KERNEL NAME) but where would the files be now because all that is located in the folder is a folder named RPM?
Old 10-16-2005, 10:43 AM   #2
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 66
If it isn't in /usr/src/linux* then it probably isn't installed. Either download your distros kernel sources or get an original version from
Old 10-18-2005, 12:21 AM   #3
Senior Member
Registered: Aug 2004
Location: Munich, Germany
Distribution: Opensuse 11.2
Posts: 1,549

Rep: Reputation: 52
I don't think getting one from is going to work very well as Mandrake puts quite a few patches in their kernel RPMs. So even if you get the exact same version from it will be different to your running kernel and might cause errors trying to compile stuff against it.

alltime goto and setup access to the software repositories. Now go menu->System->Configuration->Packaging->Install Software (or go into the Mandrake Control Centre->Software) and install the package 'kernel-source' (without the quotes).


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 On
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Location of kernel source Echo Kilo Linux - General 2 12-19-2004 06:15 PM
kernel source location on Sid 1madstork Debian 8 12-04-2004 08:04 AM
Fedore Kernel Source location?? PeRKoniX Linux - Newbie 6 11-02-2004 09:00 AM
location of kernel source joe_sixpack Linux - General 2 02-19-2004 03:45 AM
Kernel Source Location in Mandrake 9.1? Ken Ju-On Linux - Newbie 11 08-13-2003 07:32 PM > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 07:28 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