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.
OS |
Required Dependency |
Dependency Check Command |
Dependency Installation Command |
|---|---|---|---|
Debian |
make dkms gcc linux-headers |
make -v dpkg-query -s xxx
|
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 |
OS |
Required Dependency |
Dependency Check Command |
Dependency Installation Command |
|---|---|---|---|
openEuler |
make dkms gcc kernel-headers kernel-devel |
make -v rpm -qa | grep xxx
|
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 |
|
- Click here to download the software package.
- 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.