ERROR: The Nouveau kernel driver is currently in use by your system. This driver is incompatible with the NVIDIA driver, and must be disabled before
proceeding. Please consult the NVIDIA driver README and your Linux distribution's documentation for details on how to correctly disable the
Nouveau kernel driver.
WARNING: One or more modprobe configuration files to disable Nouveau are already present at:
/usr/lib/modprobe.d/nvidia-installer-disable-nouveau.conf, /etc/modprobe.d/nvidia-installer-disable-nouveau.conf. Please be sure you have
rebooted your system since these files were written. If you have rebooted, then Nouveau may be enabled for other reasons, such as being
included in the system initial ramdisk or in your X configuration file. Please consult the NVIDIA driver README and your Linux
distribution's documentation for details on how to correctly disable the Nouveau kernel driver
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.
ERROR: Unable to find the development tool `cc` in your path; please make sure that you have the package 'gcc' installed. If gcc is installed on
your system, then please check that `cc` is in your PATH.
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.
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: 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.
WARNING: nvidia-installer was forced to guess the X library path '/usr/lib64' and X module path '/usr/lib64/xorg/modules'; these paths were not
queryable from the system. If X fails to find the NVIDIA X driver module, please install the `pkg-config` utility and the X.Org
SDK/development package for your distribution and reinstall the driver.
Install NVIDIA's 32-bit compatibility libraries?
Yes No
WARNING: Unable to determine the path to install the libglvnd EGL vendor library config files. Check that you have pkg-config and the libglvnd
development libraries installed, or specify a path with --glvnd-egl-config-path.
以上为字符模式安装警告信息,可忽略。
Installation of the kernel module for the NVIDIA Accelerated Graphics Driver for Linux-x86_64 (version 470.57.02) is now complete.
NVIDIA-SMI has failed because it couldn't communicate with the NVIDIA driver. Make sure that the latest NVIDIA driver is installed and running.
DKMS全称是DynamicKernel ModuleSupport,它可以帮我们维护内核外的驱动程序,在内核版本变动之后可以自动重新生成新的模块。在使用dkms之前首先需要确保系统中已经安装了DKMS.
Error! echo
Your kernel headers for kernel 3.10.0-1160.el7.x86_64 cannot be found at
/lib/modules/3.10.0-1160.el7.x86_64/build or /lib/modules/3.10.0-1160.el7.x86_64/source.
You can use the --kernelsourcedir option to tell DKMS where it's located.
dkms install -m nvidia -v 470.57.02 --kernelsourcedir=/usr/src/kernels/3.10.0-1160.41.1.el7.x86_64
报错如下:Error! Bad return status for module build on kernel: 3.10.0-1160.el7.x86_64 (x86_64)
Consult /var/lib/dkms/nvidia/470.57.02/build/make.log for more information.
DKMS make.log for nvidia-470.57.02 for kernel 3.10.0-1160.el7.x86_64 (x86_64)
2021年 09月 08日 星期三 16:40:36 CST
make: *** /lib/modules/3.10.0-1160.el7.x86_64/build: 没有那个文件或目录。 停止。
make: *** [modules] 错误 2