I’m trying to install NVIDIA driver onto my system using the runfile (NVIDIA-Linux-x86_64-185.18.36-pkg2.run).
I did download this from the nvidia website under the download drivers option (http://www.nvidia.com/content/DriverDownload-March2009/confirmation.php?url=/XFree86/Linux-x86_64/185.18.36/NVIDIA-Linux-x86_64-185.18.36-pkg2.run&lang=us&type=GeForce).
[b]I have all the pre-requisites for installing the driver:
- kernel version: kernel-3.10.0-693.11.6.el7.x86_64
- kernel headers: kernel-headers-3.10.0-693.11.6.el7.x86_64.rpm
- kernel devel: kernel-devel-3.10.0-693.11.6.el7.x86_64
- kernel tools: kernel-tools-3.10.0-693.11.6.el7.x86_64; kernel-tools-libs-3.10.0-693.11.6.el7.x86_64
- gcc: gcc-4.8.5-16.el7_4.1.x86_64[/b]
The installation fails. It prompts following message:
Using: nvidia-installer ncurses user interface
-> Tagging shared libraries with chcon -t textrel_shlib_t.
-> License accepted.
-> Installing NVIDIA driver version 185.18.36.
-> No precompiled kernel interface was found to match your kernel; would you li
ke the installer to attempt to download a kernel interface for your kernel f
rom the NVIDIA ftp site (ftp://download.nvidia.com)? (Answer: No)
-> No precompiled kernel interface was found to match your kernel; this means
that the installer will need to compile a new kernel interface.
-> Performing CC sanity check with CC=“cc”.
-> Performing CC version check with CC=“cc”.
-> Using the kernel source path
‘/lib/modules/3.10.0-693.11.6.el7.x86_64/source/’ as specified by the
‘–kernel-source-path’ commandline option.
ERROR: Unable to determine the version of the kernel sources located in
‘/lib/modules/3.10.0-693.11.6.el7.x86_64/source/’. Please make sure you
have installed the kernel source files for your kernel and that they are
properly configured; on Red Hat Linux systems, for example, be sure you
have the ‘kernel-source’ or ‘kernel-devel’ RPM installed. If you know
the correct kernel source files are installed, you may specify the
kernel source path with the ‘–kernel-source-path’ command line option.
I did explicitly mention the kernel path as well using --kernel-source-path but still the installer fails.
Can someone help me to get this fixed?