Click to See Complete Forum and Search --> : Kernel Header (slapNUT was helping before)


Dark Ninja
06-15-2001, 01:39 PM
Hey there. I was going to install the *.o files, and I got a compilation error. Supposedly my kernel headers could not be found. Now, I looked, and they are definitely installed. There is an argument that I can supposedly use to tell the ./build_module where they are at, but I tried that, and it didn't appear to work. What am I doing wrong?

(There is a file in my /boot directory that says, kernel_headers-2.4.3 - I tried to use that as my argument, but that didn't appear to work. I don't know what else I could use as my kernel headers.)


Thanks for any help.

Dark Ninja

slapNUT
06-15-2001, 03:49 PM
I don't think that's it in your /boot directory. Thats only one file out of several mega-bytes that make the kernel-headers. Try typing this from shell:
rpm -q kernel-headers
This will verify they are installed. If not then go ahead and install them of the cdrom. If they are installed you can locate them by typing:
rpm -q --dump kernel-headers
That will scroll them all on your screen so you can locate the directory usually
/usr/src/linux-<version>

This will work if you installed the kernel-headers from an rpm package. If you installed them from a tar.gz package then you should know where they are.

If you find the directory with the kernel files you need to put a link in /usr/src that points to them. this is done by typing:

ln -s /<path to header files> /usr/src/linux