Linux - KernelThis forum is for all discussion relating to the Linux kernel.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Hello,
I have compiled my kernel (3.1.2) from source and it's working well. But recently i needed to install some drivers and they're requiring my kernel header files. The thing is they are nowhere and I don't know how to get them.
I have tried from source folder make headers_install INSTALL_HDR_PATH=/tmp/header but it return me
Code:
CHK include/linux/version.h
CHK include/generated/utsrelease.h
HOSTCC scripts/basic/fixdep
In file included from /usr/include/bits/posix1_lim.h:157:0,
from /usr/include/limits.h:145,
from /usr/lib64/gcc/x86_64-suse-linux/4.6/include-fixed/limits.h:169,
from /usr/lib64/gcc/x86_64-suse-linux/4.6/include-fixed/syslimits.h:7,
from /usr/lib64/gcc/x86_64-suse-linux/4.6/include-fixed/limits.h:34,
from scripts/basic/fixdep.c:114:
/usr/include/bits/local_lim.h:39:26: fatal error: linux/limits.h: No such file or directory
compilation terminated.
make[1]: *** [scripts/basic/fixdep] Error 1
make: *** [scripts_basic] Error 2
The "kernel headers" are a portion of the source-code of the Linux kernel that you are running: specifically, the font=courier]*.h[/font] files.
You will find that your system has two packages available, both of them probably optional: the kernel headers, and the full kernel source.
Software that needs to have up-to-date definitions of any kernel-related constant or data structure, e.g. to properly make a system call of some sort, will need the header-file information. I install it routinely.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.