Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.


Guida passo per passo

  1. Run the following command to find out the kernel version and the required GCC version:

    Divbox
    cat /proc/version


    ES: Linux version 4.4.0-104-generic (buildd@lgw01-amd64-022) (gcc version 5.4.0 20160609 (Ubuntu 5.4.0-6ubuntu1~16.04.5)

  2. Run the following command to check whether the Make tool and the GCC compiler are installed:
    Divbox
    make -v
    gcc -v

    For gcc, ensure that the version returned by the command is the same as in the gcc version in step 1. For make, just ensure that the command runs.


  3. Check whether the appropriate version of the packages for building kernel modules is installed:
      • In Red Hat Enterprise Linux, CentOS, and Fedora, run the following command:
    Divbox
    yum list installed | grep kernel-devel

      • In Ubuntu, run the following commands:
    Divbox
    dpkg --get-selections | grep linux-headers
    dpkg --get-selections | grep linux-image


  4. In either case, ensure that the package versions are the same as in Linux version in step 1.

  5. Run the following command to check whether the Perl interpreter is installed:

    Divbox
    perl --version


    If you see the information about the Perl version, the interpreter is installed.

...