Fedora Linux Support Community & Resources Center
  #1  
Old 24th February 2006, 09:30 PM
Velvohm Offline
Registered User
 
Join Date: Feb 2006
Location: Toronto
Posts: 29
Can't find my kernel source/header files

I just recently downloaded kernel-2.6.15-1.1831_FC4.i686.rpm, rpm'd it and installed it fine. Now I can safely boot to that version no problem. The problem is that I can't find its source files and its not under /usr/src/<Kernel version>. In fact there is no directory named after the new kernel anywere except at /lib/modules/kernel but that doesn't contain the build or source folder.

I need to create a symbolic link from /usr/src/<Kernel version> to /usr/src/linux to install a driver but cant do it because somehow the directory is not there. I have tried searching it but it was nowhere to be seen. Can anyone help me?
Reply With Quote
  #2  
Old 24th February 2006, 09:37 PM
jamdusr Offline
Registered User
 
Join Date: Mar 2005
Posts: 164
You have probably tried 'locate' and the 'whereis' commands? My only other idea if those didn't turn up anything would be to try to install with yum.
Reply With Quote
  #3  
Old 24th February 2006, 09:40 PM
brunson Offline
Registered User
 
Join Date: Jun 2005
Location: Westminster, Colorado
Posts: 2,306
The kernel source was never part of the kernel rpm. If you need the header files, then install kernel-devel. If you need the full source, get the kernel src.rpm
__________________
Registered Linux User #4837
411th in line to get sued by Micro$oft
Quote:
Basically, to learn Unix you learn to understand and apply a small set of key ideas and achieve expertise by expanding both the set of ideas and your ability to apply them - Paul Murphy
Reply With Quote
  #4  
Old 24th February 2006, 10:30 PM
Velvohm Offline
Registered User
 
Join Date: Feb 2006
Location: Toronto
Posts: 29
I have already installed the kernel src rpm for that version and it installed fine. But still a directory was not created. I did try locate and whereis but to of no avail. I will try the kernel-devel
Reply With Quote
  #5  
Old 24th February 2006, 11:01 PM
bob Offline
Administrator (yeah, back again)
 
Join Date: Jul 2004
Location: Colton, NY; Junction of Heaven & Earth (also Routes 56 & 68).
Age: 69
Posts: 22,083
Try just 'locate .src' - might pin it down.
__________________
Linux & Beer - That TOTALLY Computes!
Registered Linux User #362651


Don't use any of my solutions on working computers or near small children.
Reply With Quote
  #6  
Old 25th February 2006, 04:22 PM
jcliburn Offline
Registered User
 
Join Date: Nov 2004
Location: Mississippi, USA
Posts: 1,180
You have to follow a few steps to get from the kernel source rpm to the full blown fedora kernel source code.

After you install the src.rpm, do this.

cd /usr/src/redhat/SPECS
rpmbuild -bp --target $(arch) kernel-2.6.spec

After you do that, the source code files will be rooted at /usr/src/redhat/BUILD/kernel-2.6.15/linux-2.6.15.

To make the link you mentioned, you'll need to do this:

ln -s /usr/src/kerlnels/`uname -r`-$(arch) /usr/src/linux

Last edited by jcliburn; 25th February 2006 at 04:27 PM.
Reply With Quote
Reply

Tags
files, kernel, source or header

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
cannot find some files in kernel source rpm... nspmangalore Using Fedora 0 22nd August 2009 06:06 PM
X11 header files can't find X includes speedhunt3r Using Fedora 4 3rd March 2009 05:03 PM
Header Source Kernel Help! 3th0s Using Fedora 5 9th May 2007 06:10 AM
Where to find Linux-DVB driver header files?! maffioso Installation, Upgrades and Live Media 11 27th September 2006 08:56 AM
kernel source - header file dm.h not found carramba Using Fedora 1 10th June 2006 03:32 AM


Current GMT-time: 07:03 (Wednesday, 30-07-2014)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive
logo

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat