Install the NVIDIA driver on centos5.4/rhel5.4

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.