侧边栏壁纸

华三GPU服务器 ubuntu server 22.04.4系统安装英伟达L40显卡驱动报错

2024年09月21日 42阅读 1评论 2点赞

前言

华三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.

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.

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.


还有其他各种报错就不列举了。

按照官网流程安装

1.官网下载驱动
http://www.h3c.com/cn/BizPortal/DownLoadAccessory/DownLoadAccessoryFilt.aspx

2.上传显卡驱动到服务器
通过sftp把驱动文件传到服务器

3.安装华三官网的教程安装

4.安装失败 表情
毫无意外安装失败了,因为缺少各种依赖包。

安装依赖

下面开始安装各种缺德的依赖工具
1.安装gcc

sudo apt-get update
sudo apt-get install gcc

检查cc是否在PATH中
即使gcc已安装,cc可能没有被正确地链接到gcc,或者cc的路径没有包含在系统的PATH环境变量中。你可以使用以下命令来检查cc是否存在:

which cc

如果which cc返回空结果,说明cc不在

2.安装make

sudo apt-get install make

检查 make 是否在 PATH 中
如果 make 已经安装,但仍然出现错误,可能是因为 make 的路径没有被添加到系统的 PATH 环境变量中。你可以通过以下命令检查 PATH 环境变量:

echo $PATH

3.安装pkg-config、X.org、libglvnd-dev

sudo apt-get install pkg-config
apt-get install xorg-dev  
apt-get install xserver-xorg
apt-get install   libglvnd-dev

4.安装驱动

chmod 777 NVIDIA-Linux-x86_64-535.161.08.run
  
./NVIDIA-Linux-x86_64-535.161.08.run

按照提示回车安装

5.查看显卡
nvidia-smi

2
打赏

—— 评论区 ——

昵称
邮箱
网址
取消
  1. @
    头像
    1059189875
    iOS 17.6.1   Safari 17

    其他显卡能用吗

博主栏壁纸
6 文章数
14 标签数
43 评论量
人生倒计时
舔狗日记