Missing linux-headers

Scott J. Crouch scottjcrouch at gmail.com
Sat Oct 8 02:21:18 EDT 2022


On 8/10/22 15:01, neutrino network wrote:
> How to update linux-headers for kernel (6.0.0) compiled from source in centos?
> 
> System has kernel 4.18 headers while kernel is 6.0, however userspace program generates  error e.g*fatal error: linux/mutex.h: No such file or directory*

linux/mutex.h is a kernel header.  User-space programs don't use those.

Are you trying to compile an out-of-tree module by any chance?  If so, you should
probably install the kernel development headers packaged by your distribution,
and point your makefile to those (or you can just point it to the directory where
you built your kernel).

Hope that helps.

Scott.



More information about the Kernelnewbies mailing list