当前位置: 首页 > news >正文

Centos7 安装nvidia显卡驱动

参考一:https://blog.csdn.net/awen19921106/article/details/131331450

参考二:https://www.cnblogs.com/lishanyang/p/17326021.html

  • 报错一:
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; onRed Hat Linux systems, for example, be sure you have the 'kernel-source' or 'kernel-devel' RPM installed. If you know the correct kernel source files are installed, you may specify thekernel source path with the '--kernel-source-path' command line option.

解决办法:

#安装内核库yum -y install epel-release
yum -y install kernel-devel#内核版本对比,要保持一致rpm -qa | grep kernel
uname -r

然后执行

./NVIDIA-Linux-x86_64-440.36.run --kernel-source-path=/usr/src/kernels/3.10.0-1160.42.2.el7.x86_64 -k $(uname -r)
  • 报错二:
Unable to find the kernel source tree . Unable to load the kernel module ‘nvidia.ko‘

解决办法:

uname -rls /usr/src/kernels,查看是否一致,一定要保持相同
不一致更新版本
yum update
更新后重启 reboot

http://www.lryc.cn/news/207538.html

相关文章:

  • 22 行为型模式-状态模式
  • Jetpack:018-Jetpack中的导航一
  • Linux常见问题解决操作(yum被占用、lsb无此命令、Linux开机进入命令界面等)
  • 层次式架构的设计理论与实践
  • 【shell】read -t -n1
  • 【嵌入式项目应用】__cJSON在单片机的使用
  • 【智能家居】
  • Android stdio 无法新建或打开AIDL文件(解决方法)
  • 如何进行渗透测试以提高软件安全性?
  • YOLOv5 添加 OTA,并使用 coco、CrowdHuman数据集进行训练。
  • SpringBoot 日志
  • 非小米笔记本小米妙享中心安装最新教程 3.2.0.464 兼容所有Windows系统
  • 基于大数据的社交平台数据爬虫舆情分析可视化系统 计算机竞赛
  • MYSQL(事务)
  • npm start启动的是什么
  • 基于PyTorch的MNIST手写体分类实战
  • conda 复制系统环境
  • 如何在Microsoft Visual Studio 中使用Cpp代码调用python代码
  • DAY35 435. 无重叠区间 + 763.划分字母区间 + 56. 合并区间
  • 代码随想录算法训练营第2天| 977有序数组的平方、209长度最小的子数组。
  • 微信小程序通过startLocationUpdate,onLocationChange获取当前地理位置信息,配合腾讯地图解析获取到地址
  • C/C++字符三角形 2020年12月电子学会青少年软件编程(C/C++)等级考试一级真题答案解析
  • Python数据挖掘:入门、进阶与实用案例分析——基于非侵入式负荷检测与分解的电力数据挖掘
  • 基于 Qt控制开发板 LED和C语言控制LED渐变亮度效果
  • Android 11.0 禁用插入耳机时弹出的保护听力对话框
  • 微信小程序案例2-3:婚礼邀请函
  • K8S部署Dashboard
  • 【OJ比赛日历】快周末了,不来一场比赛吗? #10.29-11.04 #7场
  • 常用应用安装教程---在centos7系统上安装Docker
  • CTFHub-SSRF-读取伪协议