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 Dependencies |
Checking Dependent Commands |
Installing Dependent Commands |
|---|---|---|---|
Debian |
make dkms gcc linux-headers |
make -v dpkg-query -s xxx
|
apt-get install -y xxx For a linux-headers software package, you need to append -$(uname -r) to the package name for 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 Dependencies |
Checking Dependent Commands |
Installing Dependent Commands |
|---|---|---|---|
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, you need to append -$(uname -r) to the package name for 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 |
|||
BC-Linux |
|||
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 in the x86 architecture) |
||
CTyunOS |
make gcc kernel-devel |
||
UOS |
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.7.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.