Installing Dependencies Required for Compiling Driver Source Code

For details about the dependencies, check commands, and installation commands required for compiling the driver source code of each OS, see this section.

Debian OSs: Debian, Ubuntu, veLinux
Table 1

OS

Required Dependency

Dependency Check Command

Dependency Installation Command

Debian

make

dkms

gcc

linux-headers

make -v
dpkg-query -s xxx
  • If the software package version information is displayed, the software package has been installed.
  • If it is not installed, you need to run the installation command to install it.
  • For a linux-header software package, you need to add -$(uname -r) to the end of the package name during the check, for example, linux-headers-$(uname -r).
apt-get install -y xxx

For a linux-header software package, add -$(uname -r) to the end of the package name during installation, for example, linux-headers-$(uname -r).

If the dependency installation fails, you can obtain the installation package from the OS vendor website and install it.

Ubuntu

veLinux

openEuler series: openEuler, CentOS, Kylin, BCLinux, UOS V20, AntOS, AliOS, CTyunOS, CULinux, Tlinux, MTOS, vesselOS
Table 2

OS

Required Dependency

Dependency Check Command

Dependency Installation Command

openEuler

make

dkms

gcc

kernel-headers

kernel-devel

make -v
rpm -qa | grep xxx
  • If the software package version information is displayed, the software package has been installed.
  • If it is not installed, you need to run the installation command to install it.
  • For the kernel-devel and kernel-headers software packages, you need to add -$(uname -r) to the end of the package name during the check, for example, kernel-headers-$(uname -r).
yum install -y xxx

For the kernel-devel and kernel-headers software packages, add -$(uname -r) to the end of the package name during the installation, for example, kernel-headers-$(uname -r).

If the dependency installation fails, you can obtain the installation package from the OS vendor website and install it.

AntOS

AliOS

BCLinux

CULinux

MTOS

vesselOS

Kylin

make

dkms

gcc

kernel-devel

CentOS 7.6

CentOS 8.2

make

dkms

gcc

kernel-headers

kernel-devel

elfutils-libelf-devel (installed only on CentOS 8.2 for the x86 architecture)

CTyunOS

make

gcc

kernel-devel

UOS V20

make

dkms

gcc

kernel-devel

Tlinux

  • TLinux 3.1: make, dkms, gcc, kernel-headers, kernel-devel
  • TLinux 3.2: make, dkms, gcc, kernel-tlinux4-devel, kernel-tlinux4-headers
For CentOS, obtain the kernel package by referring to the following content and then perform the installation.
If the DKMS installation fails in OSs (openEuler series) that use RPM package, perform the following steps:
  1. Click here to download the software package.
  2. After uploading the software package to the server, run the rpm -ivh xxx.rpm command to install the RPM package.

    If the following error information is displayed:

    1
    2
    error: Failed dependencies:
            elfutils-libelf-devel is needed by dkms-2.6.1-1.el7.noarch
    

    Run the following command to install the dependency:

    yum install -y elfutils-libelf-devel

    Run the rpm -ivh xxx.rpm command to install the RPM package.