最近给几位新同学装了几次 nvidia 驱动,问题大都集中在 缺少 gcc和 缺少 kernel-devel,记录一下:
-
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 thatcc
is in your PATH.解决方法:
yum install gcc
-
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.
解决方法:
yum install kernel-devel