Fedora Error Linux/config.h No Such File Or Directory
Contents |
communities company blog Stack Exchange Inbox Reputation and Badges sign up log in tour help Tour Start here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies fatal error linux/config.h no such file or directory ubuntu of this site About Us Learn more about Stack Overflow the company Business fatal error: asm/system.h: no such file or directory Learn more about hiring developers or posting ads with us Ask Ubuntu Questions Tags Users Badges Unanswered Ask Question config h not found ubuntu _ Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute: Sign up Here's how it works: Anybody can ask a question
Config.h File Not Found
Anybody can answer The best answers are voted up and rise to the top My computer doesn't recognize the following library: linux/config.h when compiling up vote 2 down vote favorite 2 I have code written in C and I have included some libraries such as linux/config.h and linux/kernel.h. Whenever I compile the file, it gives me an error saying No such file or directory ? asm/system.h not found Is there a certain program I should install first ? How can I solve this error ? kernel compiling share|improve this question edited May 14 '13 at 5:54 Kevin Bowen 10.4k104759 asked May 13 '13 at 10:49 Zeyad 1114 1 Are you sure that those files are in your include path for headers? –Misery May 13 '13 at 11:12 No I just downloaded the driver and that is what I got when I compiled the file ? but as you asked I check and all the header files are in directory usr/src/linux-headers-3.2.0-41/include/linux ?? does this help ?? –Zeyad May 13 '13 at 11:44 1 Maybe this quick and dirty solution works: Add "-I/usr/src/linux-headers-3.2.0-41/include/" to your $CFLAGS when running configure, make, etc (if you have no CFLAGS yet, you can simply write "CFLAGS='-I/usr/src/linux-headers-3.2.0-41/include/' make"). This should instruct your compiler to look in that folder. –soulsource May 13 '13 at 12:03 @Zeyad: I think that your compiler simply has no access to that path. You need to inform your compiler where to seek for this files. Instead of #include "linux/config.h" write: #include "usr/src/linux-headers-3.2.0-41/include/linux/config.h". Does this help? –Mi
a driver on FC6 that works up until FC5. The errormessage is that it can't find linux/config.h. Now I find out that while up until FC5, linux/config.h was present in /usr/src/kernels/
If you want to compile a kernel module with the new 2.6.18 kernel, you may encounter this error message:user$ ...linux/config.h: No such file or https://stephane.lesimple.fr/blog/2006-11-19/kernel-2-6-18-linuxconfig-h-problem.html directoryThis may happen even if you have your kernel headers installed (having your whole kernel sources won't help either). This is because the module you're trying to build requires the linux/config.h file, which has been deprecated for some time now, and has been removed from the kernel tree since 2.6.18. There are a couple of solutions to no such this problem : * 1) Recreate the linux/config.h file in your kernel tree. It's just 4 lines long:#ifndef _LINUX_CONFIG_H #define _LINUX_CONFIG_H #include