我知道我的kernel.h文件位于/ usr / include / linux / 但是这个Nvidia程序找不到它 然后它要求我使用--kernel-source-path参数运行它 我确实给了那条路,但它行不通 它说找不到它,因为它走的路不对 只需
即可运行 ./nvidia.run
返回:
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.
然后通过
运行它 ./nvidia.run --kernel-source-path /usr/include/linux/
返回:
ERROR: The kernel header file '/usr/include/linux//include/linux/kernel.h'
does not exist. The most likely reason for this is that the kernel
source path '/usr/include/linux/' is incorrect. 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.
我首先想到的是从地址中删除/ include / linux / 但是告诉它去路径/ usr /只是告诉我它无效。 kernel.h文件确实位于/usr/include/linux/kernel.h中 但我无法阅读。
ERROR: The kernel source path '/usr/' is invalid. 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.