Find the answer to your Linux question:
Results 1 to 3 of 3
I am installing an application on the server, and it wants to compile some modules. I get this question: What is the location of the directory of C header files ...
  1. #1
    Just Joined!
    Join Date
    Mar 2008
    Posts
    35

    Where are the C header files in Linux?



    I am installing an application on the server, and it wants to compile some modules. I get this question:

    What is the location of the directory of C header files that match your running
    kernel?

    Is there some standard answer to that?

    /usr/src/linux/include seems not to be correct.

  2. #2
    Blackfooted Penguin daark.child's Avatar
    Join Date
    Apr 2006
    Location
    West Yorks
    Posts
    4,319
    Should be /usr/src/linux{VERSION}. On some distros it /usr/src/kernels/kernel{VERSION}. You need to have the kernel-source package that matches the same version of the kernel you are running on your system.

  3. #3
    Just Joined!
    Join Date
    Mar 2008
    Posts
    35
    Thank you.
    I installed the kernel-source from the Debian DVD via synaptic package installer and found it at /usr/src/linux-headers-2.6.18-6-amd64/include

    It worked

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •