小编flo*_*ker的帖子

在CentOS 7上安装CUDA 7.5 - 无法找到内核源代码

首先,所有这些都是以root身份完成的.我一直在尝试在CentOS 7 SATA DOM上安装CUDA 7.5驱动程序.我遇到的问题如下:

Installing the NVIDIA display driver...
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.
Run Code Online (Sandbox Code Playgroud)

我试图用以下命令指向内核源路径(我可能指向错误的路径;我是新的Linux用户):

$ ./cuda_7.5.18_linux.run --kernel-source-path=/usr/src/kernels/3.10.0-327.18.2.el7.x86_64
Run Code Online (Sandbox Code Playgroud)

和以前一样的问题.我在网上看到有这个问题的其他人是因为内核版本不匹配.但事实并非如此:

$ uname -r
3.10.0-327.18.2.el7.x86_64
$ rpm -q kernel-devel kernel-headers
kernel-devel-3.10.0-327.18.2.el7.x86_64
kernel-headers-3.10.0-327.18.2.el7.x86_64

$ ls /usr/src/kernels …
Run Code Online (Sandbox Code Playgroud)

linux cuda centos7

7
推荐指数
1
解决办法
7101
查看次数

标签 统计

centos7 ×1

cuda ×1

linux ×1