LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
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 06-25-2002, 12:17 AM   #1
PatC
LQ Newbie
 
Registered: Jun 2002
Location: Washington state
Distribution: Debian and RedHat so far
Posts: 18

Rep: Reputation: 0
Prefix of kernel-headers RH 7


Working as an intern, installed RH 7 on intel box.
Need to install a token ring nic.
Have the Madge driver tarball and ready to go, copied and untared.
Problem is when running Make for first time in RH, need to know the prefix (path) to kernel headers.
From checking an rpm install of the package, I know they are installed, but being a linux dummy I do not know how to find out where they are installed to tell make.
Can anyone help a starter.
Patrick
 
Old 06-26-2002, 12:28 AM   #2
mlp68
Member
 
Registered: Jun 2002
Location: NY
Distribution: Gentoo,RH
Posts: 333

Rep: Reputation: 40
Hi Pat

have a look at

/lib/modules/XXXXX/build/include

where you get XXXXX from uname -r, e.g, 2.4.18-3.

In the old days the headers were expected under /usr/src/linux, but that has the disadvantage that if you boot an older kernel, the headers may not match.

If you need to know which files an RPM installed, you can do
rpm -ql <package name>

Hope it helps,
Martin
 
  


Reply



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
trying to find/install kernel-source or kernel-headers timsch75 Slackware 3 10-22-2005 09:17 AM
Difference between kernel-headers kernel-source twinkers Debian 2 06-18-2005 11:20 AM
send packets with kernel routing and without kernel messing with headers bassdemon Programming 5 02-08-2005 06:29 PM
How to get kernel headers? pingu Linux - Software 5 11-25-2004 03:08 AM
Kernel headers mmm Linux - General 3 07-13-2003 03:38 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 12:13 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
Open Source Consulting | Domain Registration