• [^] # Re: abracadaplouf

    Posté par . En réponse au message Compilation de kernel-header. Évalué à 1. Dernière modification le 11 avril 2019 à 18:30.

    J'essaie de répondre à cette problématique.

    :/usr/src/linux-headers-4.19.0-0.bpo.2-amd64# make cloneconfig
    /usr/src/linux-headers-4.19.0-0.bpo.2-common/scripts/Makefile.build:45: /usr/src/linux-headers-4.19.0-0.bpo.2-common/scripts/basic/Makefile: Aucun fichier ou dossier de ce type
    make[3]: *** Aucune règle pour fabriquer la cible « /usr/src/linux-headers-4.19.0-0.bpo.2-common/scripts/basic/Makefile ». Arrêt.
    make[2]: *** [/usr/src/linux-headers-4.19.0-0.bpo.2-common/Makefile:465: scripts_basic] Error 2
    make[1]: *** [Makefile:146: sub-make] Error 2
    make: *** [Makefile:8: all] Error 2
    

    Voici le problème rencontré en question 6 ci-dessous, linux-source v4.19 a été installé. La version du noyau est linux-headers-4.19.0-0.bpo.2-amd64.


    Q6. During installation, I get a message similar to the following one:
    "Kernel source does not appear to be configured for the running kernel.
    Configuration of kernel source is required to continue installation."
    I do have kernel sources installed. Is there anything else I need to do?

    A6. This problem is known to affect SUSE Linux, but it is possible that other
    distributions require similar steps to resolve this problem.

    On openSUSE, complete the following steps:

    1. Ensure you have installed kernel-source and kernel-syms packages
      corresponding to the version of the currently running kernel. You
      can determine the currently running kernel version by issuing the
      command "uname -r".

    2. Change the directory to the /usr/src/linux- directory,
      where corresponds to the currently running kernel version.

    3. Run "zcat /boot/symvers-.gz > Module.symvers" as root to
      prepare modversion support.

    4. Run "make cloneconfig" as root to configure the sources for the
      currently running kernel.

    5. Run "make modules_prepare" as root to prepare the headers for
      compilation.

    6. Run the NI-488.2 for Linux INSTALL script.