LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 04-20-2005, 06:12 AM   #1
rpb
Member
 
Registered: Mar 2005
Location: the thrid rock from the sun
Distribution: Red Hat 8, FC 3
Posts: 31

Rep: Reputation: 15
kernel source files missing !!


Hello,

I wanted to install a particular software which requires the kernel sources. The installation script by default directed me to /usr/src/linux-2.6.9-1.667smp; but there was no directory containing the kernel sources; and the kernel source are nowhere in the system. So I am not able to install the software.

Here are the machine details:
kernel: 2.6.9-1.667smp
distro : Fedora Core release 3 (Heidelberg)
processor: P4 3 GHz

I downloaded the kernel SRPM kernel-2.6.9-1.667.src.rpm from the Fedora website. Then I tried the following command:

rpm2cpio kernel-2.6.9-1.667.src.rpm | cpio -dvi

I expected to get a directory called linux-2.6.9-1.667smp which I can use to install the software. But there is just a linux-2.6.9 directory and lot of patch files.

I am totally new to all this kernel stuff and totally lost. Now can any lend me a hand and tell me how to proceed? Should I compile the kernel files I have downloaded? Is that the only way out?

In summary, how can I get the exact source files ( all patches applied ) of the kernel which is running my system?

Please help me out.

Thanks!!
rpb
 
Old 04-20-2005, 06:22 AM   #2
ahwkong
Member
 
Registered: Aug 2004
Location: Australia
Distribution: Fedora
Posts: 282

Rep: Reputation: 30
Along with those 'lot of patch files', there should be a tar.gz or tgz file which contains all the source
 
Old 04-20-2005, 06:22 AM   #3
__J
Senior Member
 
Registered: Dec 2004
Distribution: Slackware, ROCK
Posts: 1,973

Rep: Reputation: 46
if you direct it to /lib/modules/`uname -r`/build will it work? ( fedora does it a little differently, go check out that directory and see if that will get you by.
 
Old 04-20-2005, 01:15 PM   #4
rpb
Member
 
Registered: Mar 2005
Location: the thrid rock from the sun
Distribution: Red Hat 8, FC 3
Posts: 31

Original Poster
Rep: Reputation: 15
Thanks!!

There does exist the directory /lib/modules/2.6.9-1.667smp/build. But again, this directory did not have any C sources. The installation failed again; I think this is again so because of the absense of the C files. :-(

Further pointers are most welcome !!

rpb
 
Old 04-27-2005, 01:34 AM   #5
rpb
Member
 
Registered: Mar 2005
Location: the thrid rock from the sun
Distribution: Red Hat 8, FC 3
Posts: 31

Original Poster
Rep: Reputation: 15
hello there !!

i finally got the exact answer that i needed...

the follwoing steps help..

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# rpm -ivh kernel-2.6.9-1.667.src.rpm
1:kernel ########################################### [100%]

# rpmbuild -bp --target=noarch /usr/src/redhat/SPECS/kernel-2.6.spec

The source files will be properly located in '/usr/src/redhat/BUILD/kernel-2.6.9'
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~


courtesy http://www.fedoraforum.org/.

http://forums.fedoraforum.org/showthread.php?t=51483 is the thread.

thanks !!
rpb
 
  


Reply


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
FC3 missing kernel source??? Supp0rtLinux Fedora 6 11-22-2004 04:02 PM
RH9 2.4.20-31.9 kernel source missing hosehead72 Red Hat 2 09-21-2004 02:16 AM
kernel source missing nedian Linux - General 1 03-02-2004 03:26 AM
files missing from my kernek source build... sylk Linux - Software 0 09-19-2003 07:23 PM
redhat 7.3 kernel source missing? fenixl13 Linux - Software 1 07-14-2002 03:10 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 12:21 AM.

Main Menu
Advertisement
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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration