[clug] Installing kernel headers

Brad Hards bradh at frogmouth.net
Wed Apr 14 08:15:40 GMT 2004


On Wed, 14 Apr 2004 06:02 pm, Michael Still wrote:
> Heya,
>
> so, I compile kernels from source occassionally. I'm a little confused
> as to whether I am meant to be installing kernel headers when I start
> running a new kernel however. External modules fail to compile unless
> they have the latest headers, but there isn't a make target to install
> the headers.
The headers should get installed when you install modules

> If I am meant to install new headers, what is the best way of doing it?
See above.

> I've read that I should be running with the headers which match those
> which glibc was compiled against.
/usr/include/linux should match glibc
/lib/modules/$kernel/build/include should match running kernel.
Compile against the first for userspace and the later for kernel space.

Brad


More information about the linux mailing list