Linux - KernelThis forum is for all discussion relating to the Linux kernel.
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.
Introduction to Linux - A Hands on Guide
This guide was created as an overview of the Linux Operating System, geared toward new users as an exploration tour and getting started guide, with exercises at the end of each chapter.
For more advanced trainees it can be a desktop reference, and a collection of the base knowledge needed to proceed with system and network administration. This book contains many real life examples derived from the author's experience as a Linux system and network administrator, trainer and consultant. They hope these examples will help you to get a better understanding of the Linux system and that you feel encouraged to try out things on your own.
Click Here to receive this Complete Guide absolutely free.
I use Slackware 14.0. Trying to remove unnecessary files I uninstalled kernel-src package. I already had the source, cloned from git. But after I removed it, seems, that standard Include directories, pointing to /usr/src/linux were corrupted. And now I can't run make menuconfig to compile the new kernel:
# make menuconfig
In file included from /usr/include/sys/socket.h:40:0,
/usr/include/bits/socket.h:384:24: fatal error: asm/socket.h: No such file or directory
How to restore C_INCLUDE_PATH variable, so the compiler could find the include files from kernel source?
/usr/src/linux will symlink to your default kernel, if you remove kernel-src (/usr/src/linux-$YOUR-KERNEL-VERSION) then you have removed the kernel it was pointing too, just remake the symlink to your new downloaded source.
No, man. I have put the source directly into /usr/src/linux without a symlink. And is getting the error. It's something with Include directories for gcc.
ok you don't put the source file into the /usr/src/linux directory, this is always a symlink to you kernel source, your include files are located in /usr/src/linux-your-version/include. gcc defaults to look in /usr/src/linux/include for the include files, this is why you always symlink it to what ever kernel your are using.
Ok if installing the kernel-header packages worked, then removing kernel-source may have remove the original header files, which are found in /usr/include directory, these are the includes that are built against the original gcc version shipped with slackware 14, that would have been my next suggestion should you still have trouble, glad it's all working now.