LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Prefix of kernel-headers RH 7 (https://www.linuxquestions.org/questions/linux-newbie-8/prefix-of-kernel-headers-rh-7-a-24259/)

PatC 06-25-2002 12:17 AM

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

mlp68 06-26-2002 12:28 AM

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


All times are GMT -5. The time now is 08:34 PM.