Installing CUDA 7.5 on CentOS 7 - Unable to locate the kernel source
2016-10-25 09:05
711 查看
First of all, all of this is done as root. I've been trying to install the CUDA 7.5 drivers on a CentOS 7 SATA DOM. The issue I'm running into is the following:
I have tried to point to the kernel source path (I may be pointing to the wrong path; I'm a new Linux user) with the following command:
Same issue as before. I've read online that other people with this issue is due to kernel version mismatch. That, however is not the case:
I've also tried to install different versions of gcc and still no dice.
centos 7.2
centos 7.1
rpm -Uvh http://download.fedoraproject.org/pub/epel/7/x86_64/e/epel-release-7-8.noarch.rpm
update epel,yum install --enablerepo=epel dkms will be ok
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.
I have tried to point to the kernel source path (I may be pointing to the wrong path; I'm a new Linux user) with the following command:
$ ./cuda_7.5.18_linux.run --kernel-source-path=/usr/src/kernels/3.10.0-327.18.2.el7.x86_64
Same issue as before. I've read online that other people with this issue is due to kernel version mismatch. That, however is not the case:
$ 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 3.10.0-327.18.2.el7.x86_64 $ ls /usr/src/kernels/3.10.0-327.18.2.el7.x86_64/ arch block crypto drivers firmware fs include init ipc Kconfig kernel lib Makefile mm Module.symvers net samples scripts security sound System.map tools usr virt vmlinux.id
I've also tried to install different versions of gcc and still no dice.
centos 7.2
sudo yum install epel-release yum install --enablerepo=epel dkms[/code]
centos 7.1
rpm -Uvh http://download.fedoraproject.org/pub/epel/7/x86_64/e/epel-release-7-8.noarch.rpm
update epel,yum install --enablerepo=epel dkms will be ok
相关文章推荐
- ubuntu14.04.5装cuda7.5记录(解决unable to locate the kernel source,装cuda黑屏问题,装cuda循环登录问题)
- virtualbox安装centos 6 增强工具提示“Unable to find the kernel source tree for the currently running kernel”
- 修复VirtualBox "This kernel requires the following features not present on the CPU: pae Unable to boot
- 解决VirtualBox "This kernel requires the following features not present on the CPU: pae Unable to boot
- 修复VirtualBox "This kernel requires the following features not present on the CPU: pae Unable to boot
- 修复VirtualBox "This kernel requires the following features not present on the CPU: pae Unable to boot – please use a kernel appropriate for your CPU"(安装深度Linux的时候就需要)
- Centos kernel panic-not syncing:VFS:Unable to mount root fs on unknown block
- linux里面编译安装显卡驱动失败:ERROR:Unable to find the kernel source tree for the currently running kernel.
- 修复VirtualBox "This kernel requires the following features not present on the CPU: pae Unable to boot
- 修复VirtualBox "This kernel requires the following features not present on the CPU: pae Unable to boot
- 修复VirtualBox "This kernel requires the following features not present on the CPU: pae Unable to boot
- 修复VirtualBox "This kernel requires the following features not present on the CPU: pae Unable to boot – please use a kernel appropriate for your CPU"
- 执行EXE程序出现unable to locate suitable Java runtime Environment on this machine java解决方法
- maven install Unable to locate the Javac Compiler in: C:\Program Files\Java\jre7\..\lib\tools.jar
- ORA-30926: unable to get a stable set of rows in the source tables
- How to solve “Unable to run mksdcard SDK tool” when installing Android Studio on CentOS
- Maven出现 Unable to locate the Javac Compiler in解决方法
- CI框架中Unable to locate the model you have specified:*_model解决方法
- 解决com.sun.tools.javac.Main is not on the classpath / Unable to find a javac compiler 的问题
- Maven出现 Unable to locate the Javac Compiler in解决方法