RHEL8 上的 CUDA 10 和 dkm

RHEL8 上的 CUDA 10 和 dkm

我想根據NVIDIA CUDA工具包上的資訊安裝CUDA地點

wget http://developer.download.nvidia.com/compute/cuda/10.2/Prod/local_installers/cuda-repo-rhel8-10-2-local-10.2.89-440.33.01-1.0-1.x86_64.rpm
sudo rpm -i cuda-repo-rhel8-10-2-local-10.2.89-440.33.01-1.0-1.x86_64.rpm
sudo dnf clean all
sudo dnf -y module install nvidia-driver:latest-dkms
sudo dnf -y install cuda
...
Error: 
 Problem 1: conflicting requests
  - nothing provides dkms needed by kmod-nvidia-latest-dkms-3:440.33.01-1.el8.x86_64

如果我啟用埃佩爾透過

sudo subscription-manager repos --enable "codeready-builder-for-rhel-8-$(arch)-rpms"
[sudo] password for adminsafe20: 
Repository 'codeready-builder-for-rhel-8-x86_64-rpms' is enabled for this system.

看起來不錯,但我沒有看到任何返回,yum search dkms除了:

============================== Name Matched: dkms ==============================
kmod-nvidia-latest-dkms.x86_64 : NVIDIA display driver kernel module

我收到與嘗試安裝之前相同的原始訊息:

 - nothing provides dkms needed by kmod-nvidia-latest-dkms-3:440.33.01-1.el8.x86_64

答案1

你沒有啟用epel。您啟用了該codeready-builder儲存庫。

首先,新增epel儲存庫:

dnf install https://dl.fedoraproject.org/pub/epel/epel-release-latest-8.noarch.rpm

它通常在安裝後預設啟用,但如果沒有:

dnf config-manager --enable epel

然後您就可以安裝了dkms

相關內容