The target system is centos 5.4,
Graphics card model: NVIDIA geforce 9800 GT
From http://www.nvidia.cn/Download/index.aspx? Lang = cn find and download the driver
The following error is reported during installation:
Using: NVIDIA-installer ncurses user interface
-> Tagging shared libraries with chcon-T textrel_shlib_t.
-> License accepted.
-> Installing NVIDIA driver version 190.53.
-> Discovery CC sanity check with CC = "cc ".
-> Parameter Ming CC version check with CC = "cc ".
Error: unable to find the kernel source tree for the currently running kernel.
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.
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.
The official driver has been installed many times before. Every time this error occurs, it must be installed this time. So I went crazy about searching for information online. The installation was successful.
First, check the kernel version:
Uname-R
2.6.18-164.11.1.el5xen
It turns out to be the xen kernel, which cannot be installed with the NVIDIA Driver (as mentioned on the Internet)
Yum install kernel-devel
Reboot
Select the kernel to start when starting the instance.
Init 3
Go to the command interface and run cd to the directory where the installation package is located:
Sh NVIDIA-Linux-x86-190.53-pkg1.run
All the way to yes, haha, finally installed successfully!
If the "GCC" error is displayed in the error message, it should be because your GCC has not been installed.
Yum install gcc