Directory of C header sous debian ??

DEBIAN -  
 jimbowx -
Bonjour,

Pourriez vous me donner le reponse à ceci
Je suis sous DEBIAN

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

Merci .

4 réponses

  1. jimbowx
     
    Salut,

    J'arrive surement un peu tard, mais bon, je réponds tout de même à ta question:

    Pour avoir les fichiers headers kernel sous debian5, vous devez installer le paquet les contenant;
    Pour ça tape la commande:

    # apt-get install linux-headers-`uname -r`

    Indique ensuite le chemin suivant pour les headers à l'install de vmware:
    /usr/src/linux-headers-2.6.26-2-686/include/
    Mon kernel étant en 2.6.26-2-686

    Voilà
    5
  2. kmf31 Messages postés 1564 Statut Contributeur 501
     
    /usr/src/linux/include
    ou:
    /lib/modules/<version_noyau>/build/include
    0
  3. Sebcrj
     
    Bonjour

    un peu d'aide serait le bien venu ...

    Je vous explique mon problème

    Je suis sur un windiows 2003 sur lequel j'ai installé VMWare pour installer la Fedora Core 8
    Par la suite, j'install les outils de VMWare et je lance le fichier de config vmware-config-tools.pl

    Un certain nombre de questions me sont posées ... mais je bloque sur l'une d'entre elle :

    What is the location of C header files that match your running kernel ? [ /usr/src/linux/include ]

    Mais évidement l'emplacement n'est pas le bon.

    Que dois je répondre ???
    et surtout c'est quoi les " C header files ???

    Merci
    0
  4. yoann_tux Messages postés 445 Statut Membre 96
     
    même réponse que la réponse précedente ;)

    /usr/src/linux/include
    ou:
    /lib/modules/<version_noyau>/build/include

    Lire avant de demander....
    0
    1. v1nux
       
      je confirme ayant installé linux-headers 2.6.18-4-k7 sur ma etch debian pour vmware workstation le chemin pour le C header est /lib/modules/<version_noyau>/build/include
      voili voilà
      0
      1. v1nux > v1nux
         
        n'oubliez pas d'installer avant linux-header....;-)
        0
      2. dragoth > v1nux
         
        Bonjour,

        On me demande à l'installation :
        What is the location of the directory of C header files that match your running
        kernel? (normal)

        Mais mon noyau est recompilé:

        Donc a la place de mettre : /lib/modules/2.6.29DL380G5/build/include
        Je mets /usr/src/linux-2.6.2/include
        où il y a les mêmes fichiers.

        Mais j'ai toujours le même message d'erreur:


        What is the location of the directory of C header files that match your running
        kernel? /lib/modules/2.6.29DL380G5/build/include /usr/src/linux-2.6.29/include

        Extracting the sources of the vmmon module.

        Building the vmmon module.

        Using 2.6.x kernel build system.
        make: Entering directory `/tmp/vmware-config5/vmmon-only'
        make -C /usr/src/linux-2.6.29/include/.. SUBDIRS=$PWD SRCROOT=$PWD/. modules
        make[1]: Entering directory `/usr/src/linux-2.6.29'
        CC [M] /tmp/vmware-config5/vmmon-only/linux/driver.o
        In file included from /tmp/vmware-config5/vmmon-only/linux/driver.c:31:
        /tmp/vmware-config5/vmmon-only/./include/compat_wait.h:78: error: conflicting types for âpoll_initwaitâ
        include/linux/poll.h:67: error: previous declaration of âpoll_initwaitâ was here
        In file included from /tmp/vmware-config5/vmmon-only/./common/vmx86.h:31,
        from /tmp/vmware-config5/vmmon-only/linux/driver.h:29,
        from /tmp/vmware-config5/vmmon-only/linux/driver.c:101:
        /tmp/vmware-config5/vmmon-only/./include/x86apic.h:97:1: warning: "APIC_BASE_MSR" redefined
        In file included from /usr/src/linux-2.6.29/arch/x86/include/asm/numa_64.h:5,
        from /usr/src/linux-2.6.29/arch/x86/include/asm/numa.h:4,
        from /usr/src/linux-2.6.29/arch/x86/include/asm/acpi.h:28,
        from /usr/src/linux-2.6.29/arch/x86/include/asm/fixmap_64.h:15,
        from /usr/src/linux-2.6.29/arch/x86/include/asm/fixmap.h:7,
        from /usr/src/linux-2.6.29/arch/x86/include/asm/apic.h:8,
        from /usr/src/linux-2.6.29/arch/x86/include/asm/smp.h:13,
        from include/linux/smp.h:36,
        from include/linux/topology.h:33,
        from include/linux/mmzone.h:767,
        from include/linux/gfp.h:4,
        from include/linux/kmod.h:22,
        from include/linux/module.h:13,
        from /tmp/vmware-config5/vmmon-only/./include/compat_module.h:27,
        from /tmp/vmware-config5/vmmon-only/linux/driver.c:26:
        /usr/src/linux-2.6.29/arch/x86/include/asm/apicdef.h:132:1: warning: this is the location of the previous definition
        /tmp/vmware-config5/vmmon-only/linux/driver.c: In function âLinuxDriverSyncCallOnEachCPUâ:
        /tmp/vmware-config5/vmmon-only/linux/driver.c:1423: error: too many arguments to function âsmp_call_functionâ
        /tmp/vmware-config5/vmmon-only/linux/driver.c: In function âLinuxDriver_Ioctlâ:
        /tmp/vmware-config5/vmmon-only/linux/driver.c:1987: error: âstruct task_structâ has no member named âeuidâ
        /tmp/vmware-config5/vmmon-only/linux/driver.c:1987: error: âstruct task_structâ has no member named âuidâ
        /tmp/vmware-config5/vmmon-only/linux/driver.c:1988: error: âstruct task_structâ has no member named âfsuidâ
        /tmp/vmware-config5/vmmon-only/linux/driver.c:1988: error: âstruct task_structâ has no member named âuidâ
        /tmp/vmware-config5/vmmon-only/linux/driver.c:1989: error: âstruct task_structâ has no member named âegidâ
        /tmp/vmware-config5/vmmon-only/linux/driver.c:1989: error: âstruct task_structâ has no member named âgidâ
        /tmp/vmware-config5/vmmon-only/linux/driver.c:1990: error: âstruct task_structâ has no member named âfsgidâ
        /tmp/vmware-config5/vmmon-only/linux/driver.c:1990: error: âstruct task_structâ has no member named âgidâ
        /tmp/vmware-config5/vmmon-only/linux/driver.c:2007: error: too many arguments to function âsmp_call_functionâ
        make[2]: *** /tmp/vmware-config5/vmmon-only/linux/driver.o Error 1
        make[1]: *** [_module_/tmp/vmware-config5/vmmon-only] Error 2
        make[1]: Leaving directory `/usr/src/linux-2.6.29'
        make: *** [vmmon.ko] Error 2
        make: Leaving directory `/tmp/vmware-config5/vmmon-only'
        Unable to build the vmmon module.

        For more information on how to troubleshoot module-related problems, please
        visit our Web site at "https://kb.vmware.com/s/article/1623" and
        "https://kb.vmware.com/s/article/1625".

        Execution aborted.
        0
      3. dragoth > dragoth
         
        étant un problème de structure et ayant une version récente, il est possible qu'il faille appliquer un patch.
        Voici celui que j'ai trouver mais je ne vois son utilisation sur aucun site.
        vmware-2.6.29-rc1.patch

        Quelqu'un connaitrait il la commande pour le mettre en place?
        0