使用显卡为NVIDIA RTX5000,新装Cent OS 7.6系统,联想P320工作站
安装系统时,为避免不必要麻烦,建议进入Trouble Shooting,精简界面安装
在NVIDIA官网下载对应的驱动文件(.run)后,移动至路径不包含中文名的位置,推荐使用/home内部
ctrl+alt+f2切换值命令行界面,登录root用户
systemctl stop lightdm
cd /home/t4rd #存放.run文件的路径
chmod 777 NVIDIA*
./NVIDIA*#运行.run文件
这里报错You appear to be running an X server; please exit X before…
原因为显卡驱动不支持在X-Windows服务运行时进行,所以需要进入运行级别3
init 3
再次运行.run文件,仍然报错,提示:
Unable to find the development tool ‘cc’ in your path;please make sure that you have the package ‘gcc’ installed…
提示没有找到编译环境,去安装一个gcc,需要电脑联网
yum -y install gcc gcc-c++
再次运行.run文件,已经可以正常安装了。
有些同学到这里仍然会报错
Unable to find the kernel source tree for the currently running kernel. Please make sure you have installed the kernel source…
这里提示没有找到内核源码,需要下载内核源码
yum install kernel-devel -y
安装完成后再次运行.run,仍然报相同Error,原因为并没有升级到最新版本内核
yum update kernel#升级成功后,务必重启,选择最新内核进入系统
再次运行.run,已经可以正常编译了
提示是否安装32位兼容库,这个随意
提示是否生成X配置,选Yes,否则不能启动dm
安装完重启系统,已经可以正常显示了
nvidia-smi
已经完美安装,问题解决!