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
这个问题呢?
首先,需要确定当前正在运行的内核版本。可以通过以下命令来查看:
uname -r
然后,根据内核版本号,安装对应的内核源码文件。以 Red Hat 系统为例,可以通过以下命令来安装:
yum install kernel-devel
如果已经安装了内核源码文件,但是仍然出现错误,可以尝试使用 --kernel-source-path 选项来指定内核源码路径。例如:
./NVIDIA-Linux-x86_64-xxx.run --kernel-source-path /usr/src/kernels/$(uname -r)
其中,/usr/src/kernels/$(uname -r) 表示当前正在运行的内核源码路径。
如果仍然无法解决问题,可以尝试更新系统或者联系 nvidia 官方技术支持。
原文地址: https://www.cveoy.top/t/topic/bu5X 著作权归作者所有。请勿转载和采集!