Unable to install driver 375.66 on CentOS 7

Hello. Despite my best efforts, I am unable to install the driver for our GeForce GT 630 Rev 2 (rev a1) cards.

Despite kernel-devel, dkms, and all the other appropriate tools being installed, it refuses to build, giving me the following error:

[root@machine]# ./NVIDIA-Linux-x86_64-375.66.run --kernel-source-path /usr/src/kernels/3.10.0-514.21.1.el7.x86_64/

ERROR: Failed to run ‘/sbin/dkms build -m nvidia -v 375.66 -k 3.10.0-514.el7.x86_64’: Error! echo
Your kernel headers for kernel 3.10.0-514.el7.x86_64 cannot be found at
/lib/modiles/3.10.0-514.el7.x86_64/build or
/lib/modiles/3.10.0-514.el7.x86_64/source.

ERROR: Failed to install the kernel module through DKMS. No kernel module
was installed; please try installing again without DKMS, or check the DKMS logs for more information.

ERROR: Installation has failed. Please see the file
‘/var/log/nvidia-installer.log’ for details. You may find
suggestions on fixing installation problems in the README available
on the Linux driver download page at www.nvidia.com.

Please let me know what other information I can provide you to assist in debugging this problem.

Also, attempting to install without DKMS yields:

ERROR: Unable to load the kernel module ‘nvidia.ko’. This happens most frequently when this kernel module was built against the wrong or improperly configured kernel sources, with a version of gcc that differs from the one used to build the target kernel, or if a driver such as rivafb, nvidiafb, or nouveau is present and prevents the NIVIDIA kernel module from obtaining ownership of the NVIDIA graphics device(s), or no NVIDIA GPU installed in this system is supported by this NVIDIA Linux graphics driver release.

Please see the log entries ‘Kernel module load error’ and ‘Kernel messages’ at the end of the file ‘/var/log/nvidia-installer.log’ for more information.

nouveau is specifically blacklisted. I’ve never seen rivafb or nvidiafb.

sudo yum install make gcc kernel-devel-3.10.0-514

must be enough.

Also specifying “–kernel-source-path /usr/src/kernels/3.10.0-514.21.1.el7.x86_64/” is a very bad idea.

Both of those were already installed. Without --kernel-source-path, it bombs out saying it cannot find the kernel sources.

Make sure you running kernel version, kernel and kernel-devel package is exact of same version. You can check with rpm -ql | grep kernel . Try --kernel-source-path=/lib/modiles/3.10.0-514.el7.x86_64/build

If still fails please attach nvidia bug report as soon as issue hit.

Show the output of

uname -a

Let me tell I just don’t believe you. In 100% of cases problems like yours are caused by not actually running the kernel you have the development package installed for.

Your belief, or lack thereof, is irrelevant, and rude. If you have nothing positive to contribute, feel free not to.

Oh, also:

uname -a

Linux localhost 3.10.0-514.el7.x86_64 #1 SMP Tue Nov 22 16:42:41 UTC 2016 x86_64 x86_64 x86_64 GNU/Linux

rpm -qa | grep kernel

kernel-3.10.0-514.21.1.el7.x86_64
kernel-devel-3.10.0-514.21.1.el7.x86_64
kernel-tools-libs-3.10.0-514.21.1.el7.x86_64
kernel-tools-3.10.0-514.21.1.el7.x86_64
kernel-headers-3.10.0-514.21.1.el7.x86_64
abrt-addon-kerneloops-2.1.11-45.el7.centos.x86_64
kernel-3.10.0-514.el7.x86_64

Thank you for your polite, and actually helpful answer! This solved my problem with installation.