Error Config.h No Such File Or Directory
Contents |
#1 2013-07-26 20:43:56 phillme Member Registered: 2013-07-26 Posts: 10 [SOLVED] fatal error: config.h: No such file or directory in builds Hello everyone!I enjoy archlinux a lot since a few years. However, linux/config.h not found I found a problem I cannot solve although I searched forums, web and fatal error linux/config.h no such file or directory ubuntu wiki. Since a few months packages / programs do not longer build correctly for me. The errors always relate config h not found ubuntu to a missing config.h. The following example is from gcc. Language errors result from setting the LANG variable for the build to get English error messages. It does not work if fatal error: config.h: no such file or directory compilation terminated. not setting LANG either. The log is from extracted from a paktahn build.# end of configure configure: creating ./config.status config.status: creating Makefile config.status: creating testsuite/Makefile config.status: creating config.h config.status: config.h is unchanged config.status: executing default commands /bin/sh: warning: setlocale: LC_ALL: cannot change locale (EN) /bin/sh: warning: setlocale: LC_ALL: cannot change locale (EN) /bin/sh: warning: setlocale: LC_ALL: cannot change locale (EN) #make starts here make[3]:
Fatal Error: Asm/system.h: No Such File Or Directory
Entering directory `/home/caspar/.paktahn/aur/gcc-gcj/src/gcc-4.8.1/build/libiberty' if [ x"-fpic" != x ]; then \ gcc -c -DHAVE_CONFIG_H -g -I. -I../../libiberty/../include -W -Wall -Wwrite-strings -Wc++-compat -Wstrict-prototypes -pedantic -fpic ../../libiberty/regex.c -o pic/regex.o; \ else true; fi /bin/sh: warning: setlocale: LC_ALL: cannot change locale (EN) ../../libiberty/regex.c:39:22: fatal error: config.h: No such file or directory # include
fatal error: config.h file not found config.h: No such file or directory From: Andrew Haley
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 http://askubuntu.com/questions/294731/my-computer-doesnt-recognize-the-following-library-linux-config-h-when-compili policies of this site About Us Learn more about Stack Overflow the company Business Learn more about hiring developers or posting ads with us Ask Ubuntu Questions Tags Users Badges Unanswered Ask Question _ 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 no such question 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 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.4k104758 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: #incl