安裝cuda驅動出錯

1、說明

系統:

centos7.2

cuda版本:

9.0

報錯信息:

在執行.run文件後報錯

# sh cuda_9.0.176_384.81_linux.run 

The driver installation is unable to locate the kernel source. Please make sure that the kernel source packages are installed and set up correctly.

If you know that the kernel source packages are installed and set up correctly, you may pass the location of the kernel source with the '--kernel-source-path' flag.

2、解決問題

2.1、發現內核版本和kernel-devel版本不一致

# uname -r

3.10.0-327.el7.x86_64

# rpm -q kernel-devel kernel-headers

kernel-devel-3.10.0-957.1.3.el7.x86_64

kernel-headers-3.10.0-862.3.2.el7.x86_64

2.2、下載kernel-headers的安裝包,保持和內核版本的版本一樣

# rpm -ev kernel-headers-3.10.0-862.3.2.el7.x86_64

# rpm -ivh kernel-devel-3.10.0-327.el7.x86_64.rpm

再次運行安裝文件,成功。


發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章