近期基于ubuntu22.04安装NVIDIA显卡驱动中碰到问题,其失败日志提示“Warning: Compiler version check failed”,这里分享一下问题处理过程。
1 失败告警信息
笔者基于ubuntu22.04.5(ubuntu22.04的最新版本)安装NVIDIA显卡驱动,整个安装过程基本参考文章《ubuntu22.04安装显卡驱动》,进行到最后一步“执行安装文件”:
sudo ./NVIDIA-Linux-x86_64-550.142.run -no-opengl-files -no-x-check -no-nouveau-check
系统提示安装失败,提示“ERROR: An error occurred while performing the step: "Building kernel modules". See /var/log/nvidia-installer.log for details.”;于是打开对应的安装日志文件“/var/log/nvidia-installer.log”,详细的失败信息如下:
... ...(忽略无关信息)
-> Error.
ERROR: An error occurred while performing the step: "Building kernel modules". See /var/log/nvidia-installer.log for details.
-> The command `cd kernel; /usr/bin/make -k -j8 NV_EXCLUDE_KERNEL_MODULES="" SYSSRC="/lib/modules/6.8.0-60-generic/bu

3540

被折叠的 条评论
为什么被折叠?



