Fatal Error Linux/config.h No Such File Or Directory Ubuntu
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 of this fatal error: asm/system.h: no such file or directory site About Us Learn more about Stack Overflow the company Business Learn more about config h not found ubuntu hiring developers or posting ads with us Ask Ubuntu Questions Tags Users Badges Unanswered Ask Question _ Ask Ubuntu is
Config.h File Not Found
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 Anybody can answer The best
Asm/system.h Not Found
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 ? 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? –Misery May 13 '13 at 12:40 @Misery yes it helped it w
Board index The team Delete all board cookies All times are UTC
HCL Search Reviews Search ISOs Go to Page... LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie Cannot find linux/config.h User Name Remember Me? Password Linux - Newbie This Linux forum is for members that are http://www.linuxquestions.org/questions/linux-newbie-8/cannot-find-linux-config-h-754501/ new to Linux. Just starting out and have a question? If it is not in the man pages or the how-to's this is the place! Notices Welcome to LinuxQuestions.org, a friendly and active Linux Community. https://stephane.lesimple.fr/blog/2006-11-19/kernel-2-6-18-linuxconfig-h-problem.html 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 not found 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. Are you new to LinuxQuestions.org? Visit the following links: Site Howto | Site FAQ | Sitemap | Register Now If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click no such file 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. Search this Thread 09-11-2009, 05:29 PM #1 fatimap LQ Newbie Registered: Aug 2009 Posts: 4 Rep: Cannot find linux/config.h Hello, I am fairly new to the forum. I am trying the build the scull module from LinuxDeviceDriver examples and ran into the following issue: " adminuser@VirtualBoxImages-desktop:~/Desktop/examples/scull$ make make -C /lib/modules/2.6.27-7-generic/build M=/home/adminuser/Desktop/examples/scull LDDINC=/home/adminuser/Desktop/examples/scull/../include modules make[1]: Entering directory `/usr/src/linux-headers-2.6.27-7-generic' CC [M] /home/adminuser/Desktop/examples/scull/main.o /home/adminuser/Desktop/examples/scull/main.c:17:26: error: linux/config.h: No such file or directory /home/adminuser/Desktop/examples/scull/mai
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 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 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