nvidia driver on centos 7.5

Issues related to hardware problems
Post Reply
yah
Posts: 6
Joined: 2016/10/27 01:57:41

nvidia driver on centos 7.5

Post by yah » 2018/05/16 20:05:35

hi,

i'm trying to install the nvidia cuda driver cuda_9.1.85_387.26_linux.run but it fails b/c it can't find the kernel source.


[/tmp/selfgz32454/NVIDIA-Linux-x86_64-387.26/kernel/nvidia/nv-instance.o]

Error 1

make[3]: ***

[/tmp/selfgz32454/NVIDIA-Linux-x86_64-387.26/kernel/nvidia/nv-frontend.o]

Error 1

make[3]: Target `__build' not remade because of errors.

make[2]: *** [_module_/tmp/selfgz32454/NVIDIA-Linux-x86_64-387.26/kernel]

Error 2

make[2]: Target `modules' not remade because of errors.

make[1]: *** [sub-make] Error 2

make[1]: Target `modules' not remade because of errors.

make[1]: Leaving directory `/usr/src/kernels/3.10.0-862.2.3.el7.x86_64'

make: *** [modules] Error 2

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.

the kernel source files are there

# uname -r
3.10.0-862.2.3.el7.x86_64
# rpm -qa kernel-headers
kernel-headers-3.10.0-862.2.3.el7.x86_64
# rpm -qa kernel-devel
kernel-devel-3.10.0-862.2.3.el7.x86_64

is anybody else having issues installing the driver?

thanks,

yah

User avatar
jlehtone
Posts: 1989
Joined: 2007/12/11 08:17:33
Location: Finland

Re: nvidia driver on centos 7.5

Post by jlehtone » 2018/05/16 22:25:56

You do attempt source install because? ...

Did you try the yum repo:
https://developer.nvidia.com/cuda-downl ... rpmnetwork

yah
Posts: 6
Joined: 2016/10/27 01:57:41

Re: nvidia driver on centos 7.5

Post by yah » 2018/05/17 14:55:33

hi,
thanks for the suggestion. the problem is that i just want to install the driver, not the cuda environment. i tried going to this site
https://www.nvidia.com/Download/index.aspx

but i'm getting:

System Message

Please try again at a later time. Sorry for the inconvenience.

yah

stevemowbray
Posts: 388
Joined: 2012/06/26 14:20:47

Re: nvidia driver on centos 7.5

Post by stevemowbray » 2018/05/17 15:19:29

If you just want the driver, get it already packaged up from elrepo http://elrepo.org/tiki/tiki-index.php

Post Reply