Error Asm/page.h No Such File Or Directory Ubuntu
Contents |
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 site About Us Learn
Fatal Error: Asm/page.h: No Such File Or Directory Kali
more about Stack Overflow the company Business Learn more about hiring developers or asm/page.h download posting ads with us Stack Overflow Questions Jobs Documentation Tags Users Badges Ask Question x Dismiss Join the Stack Overflow Community
Error: ‘page_size’ Undeclared (first Use In This Function)
Stack Overflow is a community of 4.7 million programmers, just like you, helping each other. Join them; it only takes a minute: Sign up Having trouble compiling C code on ubuntu. (#include errors) unistd.h no such file or directory linux up vote 6 down vote favorite 1 I'm trying to compile a C program on the newest version of ubuntu, for the purpose of putting the compiled program on another machine later. However, when I compile with gcc prog.c -o prog, I get an error: "fatal error: asm/page.h: No such file or directory" Here are the headers: #include
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 site
Fatal Error: Unistd.h: No Such File Or Directory
About Us Learn more about Stack Overflow the company Business Learn more about asm/system.h not found hiring developers or posting ads with us Ask Ubuntu Questions Tags Users Badges Unanswered Ask Question _ Ask Ubuntu is
Asm/errno.h: No Such File Or Directory
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 http://stackoverflow.com/questions/19310541/having-trouble-compiling-c-code-on-ubuntu-include-errors answers are voted up and rise to the top top source code compilation error up vote 2 down vote favorite 1 I have downloaded the top source code from the following location. http://sourceforge.net/projects/unixtop/?source=dlp After extracting the code, i run the following command: ./configure make cc -DHAVE_CONFIG_H -I. -I. -I /usr/src/linux-headers-3.5.0-19/arch/alpha -g -O2 -Wall -fno-strict-aliasing -o m_linux.o -c ./machine/m_linux.c ./machine/m_linux.c:71:44: fatal error: asm/page.h: No such file or directory http://askubuntu.com/questions/266805/top-source-code-compilation-error compilation terminated. make: *** [m_linux.o] Error 1 Please help 12.04 compiling source-code top share|improve this question edited Mar 12 '13 at 9:53 NilsB 9221531 asked Mar 12 '13 at 5:07 Vivek 314313 top is already part of Ubuntu why compile it from a source that is almost two years old? –Meer Borg Mar 12 '13 at 5:25 add a comment| 2 Answers 2 active oldest votes up vote 1 down vote Install the necessary build tools first: apt-get install build-essential automake Tip: if you are interested in playing with the top source code, why not take the version included in your Ubuntu environment? apt-get source procps Then, to build just the binaries, go into the directory where it was unpacked and do: debian/rules clean debian/rules build share|improve this answer answered Mar 12 '13 at 6:13 zwets 5,63611331 add a comment| up vote 0 down vote if you are just interested in compiling top, here is one thing I did: I googled for top source code and found in http://stackoverflow.com/questions/3371131/need-the-source-code-for-top-and-find-the-connection-between-top-and-proc-dire http://www.linuxquestions.org/questions/programming-9/top-utility-source-code-385857/ that the The source and homepage for procps utilities can be found here then I did: wget http://procps.sourceforge.net/procps-3.2.7.tar.gz tar xzf procps-3.2.7.tar.gz cd procps-3.2.7/ make make SHARED=0 DESTDIR=$HO
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings http://superuser.com/questions/901849/gcc-not-picking-up-kernel-header-files and policies of this site About Us Learn more about Stack Overflow http://forums.bodhilinux.com/index.php?/topic/3723-solved-kernel-header-files-missing/ the company Business Learn more about hiring developers or posting ads with us Super User Questions Tags Users Badges Unanswered Ask Question _ Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute: Sign up Here's how no such it works: Anybody can ask a question Anybody can answer The best answers are voted up and rise to the top gcc not picking up kernel header files up vote 1 down vote favorite 1 I am trying to compile a program gcc throws fatal error: asm/page.h: No such file or directory page.h exists. How would i setup gcc to include no such file a path. I went a bit nuts and typed apt-get install linux-headers* Here are the results find / -name page.h /usr/src/linux-headers-3.18.0-kali3-amd64/include/config/hugetlb/page.h /usr/src/linux-headers-3.18.0-kali3-common/include/asm-generic/page.h /usr/src/linux-headers-3.18.0-kali3-common/include/xen/page.h /usr/src/linux-headers-3.18.0-kali3-common/arch/x86/include/asm/xen/page.h /usr/src/linux-headers-3.18.0-kali3-common/arch/x86/include/asm/page.h /usr/src/linux-headers-3.18.0-kali1-common/include/asm-generic/page.h /usr/src/linux-headers-3.18.0-kali1-common/include/xen/page.h /usr/src/linux-headers-3.18.0-kali1-common/arch/x86/include/asm/xen/page.h /usr/src/linux-headers-3.18.0-kali1-common/arch/x86/include/asm/page.h /usr/src/linux-headers-3.18.0-kali1-amd64/include/config/hugetlb/page.h gcc share|improve this question asked Apr 15 '15 at 12:13 Tim Williams 34128 add a comment| 1 Answer 1 active oldest votes up vote 1 down vote accepted At execution time you can include a header file using the -I argument... gcc myCProgram.c -o myCProgram -I/usr/src/linux-headers-3.18.0-kali1-common/include/asm-generic/ Check an example here http://www.rapidtables.com/code/linux/gcc/gcc-i.htm and the documentation (RTFM) https://gcc.gnu.org/onlinedocs/gcc-3.2/gcc/Directory-Options.html share|improve this answer edited Apr 15 '15 at 13:26 answered Apr 15 '15 at 13:20 MarioChava 1613 add a comment| You must log in to answer this question. Not the answer you're looking for? Browse other questions tagged gcc . asked 1 year ago viewed 733 times active 1 year ago Related 1Using gcc documentation0Cannot configure and install GCC1What is the best way to speedup GCC?5Make fails compiling GCC4GCC 4.8.1 failed complilation4gcc not finding header file though its path has been included with -I1gcc --as-needed linker flag not working7How does gcc find the follo
Detected You currently have javascript disabled. Several functions may not work. Please re-enable javascript to access full functionality. Become a Bodhi Linux Member and get your own @BodhiLinux.com email address! [SOLVED] kernel header files missing Started by stanks, Jan 05 2012 02:25 PM Please log in to reply 14 replies to this topic #1 stanks stanks Member Members 31 posts LocationCroatia Posted 05 January 2012 - 02:25 PM hii am trying to compile krusader and edb debugger but i get error msg about missing kernel header files. kernel header files are installed (3.0.0-14 PAE)for krusader error msg is this: [ 26%] Building CXX object krusader/Konfigurator/CMakeFiles/Konfigurator.dir/kgadvanced.o In file included from /usr/include/sys/param.h:28, from /home/stanks/paketi/krusader-2.4.0-beta1/krusader/Konfigurator/kgadvanced.cpp:36: /usr/include/linux/param.h:4:23: error: asm/param.h: No such file or directory make[2]: *** [krusader/Konfigurator/CMakeFiles/Konfigurator.dir/kgadvanced.o] Error 1 make[1]: *** [krusader/Konfigurator/CMakeFiles/Konfigurator.dir/all] Error 2 make: *** [all] Error 2 and for edb debugger is this: REENTRANT -DQT_NO_DEBUG -DQT_XML_LIB -DQT_GUI_LIB -DQT_CORE_LIB -DQT_SHARED -I/usr/share/qt4/mkspecs/linux-g++ -I. -I/usr/include/qt4/QtCore -I/usr/include/qt4/QtGui -I/usr/include/qt4/QtXml -I/usr/include/qt4 -Iwidgets -I../include -Iqhexview -Iqjson -Ios/unix -I../include/os/unix -Iedisassm -Ios/unix/linux -I../include/os/unix/linux -Iarch/i386 -I../include/arch/i386 -I.moc/release-shared -I.uic -o .obj/release-shared/ArchProcessor.o arch/i386/ArchProcessor.cpp arch/i386/ArchProcessor.cpp:35:24: error: asm/unistd.h: No such file or directory arch/i386/ArchProcessor.cpp: In member function ‘void ArchProcessor::analyze_syscall(const State&, const edb::Instruction&, QStringList&) const’: arch/i386/ArchProcessor.cpp:749: warning: unused variable ‘arg1’ arch/i386/ArchProcessor.cpp:750: warning: unused variable ‘arg2’ arch/i386/ArchProcessor.cpp:751: warning: unused variable ‘arg3’ arch/i386/ArchProcessor.cpp:752: warning: unused variable ‘arg4’ arch/i386/ArchProcessor.cpp:753: warning: unused variable ‘arg5’ arch/i386/ArchProcessor.cpp:754: warning: unused variable ‘arg6’ In file included from ../include/arch/i386/../../../src/edisassm/edisassm_string.h:112, from ../include/arch/i386/../../../src/edisassm/Instruction.h:26, from ../include/arch/i386/Instruction.h:19, from ../include/arch/i386/ArchTypes.h:23, from ../include/Types.h:22, from arch/i386/ArchProcessor.h:26, from a