阿古茹博客 - Linux
type: channel
link: https://vxlan.fun/index.php/category/Linux/
items: 华三GPU服务器 ubuntu server 22.04.4系统安装英伟达L40显卡驱动报错

华三GPU服务器 ubuntu server 22.04.4系统安装英伟达L40显卡驱动报错
type: item
date: 2024-09-21T08:56:00+00:00
description: 前言华三GPU服务器 ubuntu server 22.04.4系统安装英伟达L40显卡驱动报错。各种报错：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.{dotted startColor="#ff6c6c" endColor="#73aaff"/}ERROR: Unable to find the development tool make in your path; please make sure that you have the package make installed. If make is installed on your system, then please check that make is in your PATH.{dotted startColor="#ff6c6c" endColor="#73aaff"/}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 thX.Org SDK/development package for your distribution and reinstall he driver.{dotted startColor="#ff6c6c" endColor="#73aaff"/}还有其他各种报错就不列举了。按照官网流程安装1.官网下载驱动 http://www.h3c.com/cn/BizPortal/DownLoadAccessory/DownLoadAccessoryFilt.aspx2.上传显卡驱动到服务器 通过sftp把驱动文件传到服务器3.安装华三官网的教程安装4.安装失败 ::(怒) 毫无意外安装失败了，因为缺少各种依赖包。安装依赖下面开始安装各种缺德的依赖工具1.安装gccsudo apt-get update sudo apt-get install gcc检查cc是否在PATH中即使gcc已安装，cc可能没有被正确地链接到gcc，或者cc的路径没有包含在系统的PATH环境变量中。你可以使用以下命令来检查cc是否存在：which cc如果which cc返回空结果，说明cc不在2.安装makesudo apt-get install make检查 make 是否在 PATH 中如果 make 已经安装，但仍然出现错误，可能是因为 make 的路径没有被添加到系统的 PATH 环境变量中。你可以通过以下命令检查 PATH 环境变量：echo $PATH3.安装pkg-config、X.org、libglvnd-devsudo apt-get install pkg-config apt-get install xorg-dev apt-get install xserver-xorg apt-get install libglvnd-dev4.安装驱动chmod 777 NVIDIA-Linux-x86_64-535.161.08.run ./NVIDIA-Linux-x86_64-535.161.08.run按照提示回车安装{message type="info" content="安装过程中会提示是否安装32位兼容性，选择否，不然会报错，以上所有操作最好都用root权限安装，也就是先sudo -i。"/}5.查看显卡 nvidia-smi