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.
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.
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.
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.