Latest LQ Deal: Latest LQ Deals
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 02-18-2004, 05:45 PM   #1
LQ Newbie
Registered: Mar 2003
Location: qld, Australia
Posts: 5

Rep: Reputation: 0
location of kernel source

I've got a problem where I'm trying to install some intel network card drivers for my machine.

I've downloaded the tar.gz file from Intel then I ran this command:

rpmbuild -tb nicdriver.tar.gz

I get the error "cannot locate kernel source". I then stuck in my Red Hat sources CD and installed the package named kernel-2.4.9-e.12.src.rpm using the following command:

rpm -Uvh kernel-2.4.9-e.12.src.rpm

That package installed without a problem. But I still continue to get the cannot locate kernel source when ever I run either rpmbuild or use the make install command.

I moved into /lib/modules it had a broken symlink build -> /usr/src/linux-2.4.9-e.12.

the dir /usr/src only had a single sub folder named "redhat". So I created a symlink in the /usr/src dir using this command:

ln -s /usr/src/redhat/SOURCES linux-2.4.9-e.12

I still get the kernel source error... HELP! I'd love to get my machine to work on my LAN.
Old 02-18-2004, 06:27 PM   #2
Registered: Jan 2004
Location: NH
Distribution: Mandrake, Geentoo, Ubuntu
Posts: 105

Rep: Reputation: 15
You did not install the Linux kernel source files. Go back and undo all of the links that you did (as they are all wrong). Then, look for a file more like 'kernel-source-*'. That is the source code for the kernel.
What you installed was the RPM source for the kernel. Not the same thing.
Old 02-19-2004, 03:45 AM   #3
LQ Newbie
Registered: Mar 2003
Location: qld, Australia
Posts: 5

Original Poster
Rep: Reputation: 0
Thank you for you help Linux_in_NH, I found the kernel source not on the source CD's but rather the binary CD's..


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
Kernel Source Location alltime Linux - General 2 10-18-2005 12:21 AM
linux kernel source location Add1Sun SUSE / openSUSE 5 03-30-2005 12:33 PM
Location of kernel source Echo Kilo Linux - General 2 12-19-2004 06:15 PM
Fedore Kernel Source location?? PeRKoniX Linux - Newbie 6 11-02-2004 09:00 AM
Location of kernel source code mhl Mandriva 2 11-30-2003 05:02 PM > Forums > Linux Forums > Linux - General

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