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

error while loading shared libraries: libcudnn.so.7: cannot open shared object file: No such file or

1、错误:libcudnn.so.7

.build_release/tools/caffe
.build_release/tools/caffe: error while loading shared libraries: libcudnn.so.7: cannot open shared object file: No such file or directory
Makefile:542: recipe for target 'runtest' failed
make: *** [runtest] Error 127

 

原因分析:

主要是 /usr/local/lib/目录下找不到libcudnn.so.7这个文件, 该文件可以在usr/local/cuda-8.0/lib64/目录下找到,因此我们通过下面的命令将libcudnn.so.7这个文件复制一份过去,记得要加sudo权限,否则可能无法复制。

 

参考链接:

https://www.cnblogs.com/is-Tina/p/7719599.html

https://blog.csdn.net/qq_38451119/article/details/81126692

 

解决方案:

终端执行:

sudo cp /usr/local/cuda/lib64/libcudnn.so.7 /usr/local/lib/libcudnn.so.7
sudo ldconfig

执行后,不在报错,成功解决。

 

类似问题:

2、错误:libcudart.so.8.0

.build_release/tools/caffe
.build_release/tools/caffe: error while loading shared libraries: libcudart.so.8.0: cannot open shared object file: No such file or directory
Makefile:542: recipe for target 'runtest' failed
make: *** [runtest] Error 127

 

解决方法:执行

sudo cp /usr/local/cuda-8.0/lib64/libcudart.so.8.0 /usr/local/lib/libcudart.so.8.0 && sudo ldconfig

 

3、错误:libcublas.so.8.0

.build_release/tools/caffe
.build_release/tools/caffe: error while loading shared libraries: libcublas.so.8.0: cannot open shared object file: No such file or directory
Makefile:542: recipe for target 'runtest' failed
make: *** [runtest] Error 127

解决方案:执行

sudo cp /usr/local/cuda-8.0/lib64/libcublas.so.8.0 /usr/local/lib/libcublas.so.8.0 && sudo ldconfig

 

4、错误: libcurand.so.8.0

.build_release/tools/caffe
.build_release/tools/caffe: error while loading shared libraries: libcurand.so.8.0: cannot open shared object file: No such file or directory
Makefile:542: recipe for target 'runtest' failed
make: *** [runtest] Error 127

解决方案:执行

sudo cp /usr/local/cuda-8.0/lib64/libcurand.so.8.0 /usr/local/lib/libcurand.so.8.0 && sudo ldconfig

 

 

 

 

相关文章:

  • F1217 09:24:27.107496 4541 syncedmem.cpp:71] Check failed: error == cudaSuccess (30 vs. 0) unknown
  • 错误:pandas 0.23.4 has requirement python-dateutil=2.5.0, but you'll have python-dateutil 1.5
  • nvidia driver 驱动重装教程
  • The directory '/home/XXX/.cache/pip/http' or its parent directory is not owned by the current user
  • caffe获取mnist数据集出错:gzip: train-images-idx3-ubyte.gz: not in gzip format
  • ./include/caffe/util/cudnn.hpp: In function ‘const char* cudnnGetErrorString(cudnnStatus_t)’: ./incl
  • nvcc warning : The 'compute_20', 'sm_20', and 'sm_21' architectures are deprecated, and may be remov
  • vtk-8.01的java版本环境配置
  • git上传项目或文件到github上
  • VTK绘图窗口vtkRenderWindow 保存为图片,并且不显示绘图窗口
  • NVIDIA-SMI has failed because it couldn't communicate with the NVIDIA driver. Make sure that the lat
  • ~/caffe$ make all -j8 Makefile:606: recipe for target '.build_release/cuda/src/caffe/solvers/adam_s
  • File /usr/bin/pip, line 9, in module from pip import main ImportError: cannot import name m
  • python:pycharm 读取项目中的文件:相对路径和绝对路径
  • python数组复制(转载)
  • JS 中的深拷贝与浅拷贝
  • [LeetCode] Wiggle Sort
  • 【407天】跃迁之路——程序员高效学习方法论探索系列(实验阶段164-2018.03.19)...
  • Asm.js的简单介绍
  • Codepen 每日精选(2018-3-25)
  • IIS 10 PHP CGI 设置 PHP_INI_SCAN_DIR
  • java B2B2C 源码多租户电子商城系统-Kafka基本使用介绍
  • Laravel Telescope:优雅的应用调试工具
  • Mysql优化
  • Spark RDD学习: aggregate函数
  • Twitter赢在开放,三年创造奇迹
  • Web设计流程优化:网页效果图设计新思路
  • 关于List、List?、ListObject的区别
  • 猫头鹰的深夜翻译:JDK9 NotNullOrElse方法
  • 前端自动化解决方案
  • 算法-插入排序
  • 通过来模仿稀土掘金个人页面的布局来学习使用CoordinatorLayout
  • 用mpvue开发微信小程序
  • 责任链模式的两种实现
  • 找一份好的前端工作,起点很重要
  • raise 与 raise ... from 的区别
  • 阿里云ACE认证之理解CDN技术
  • 组复制官方翻译九、Group Replication Technical Details
  • ​学习一下,什么是预包装食品?​
  • #周末课堂# 【Linux + JVM + Mysql高级性能优化班】(火热报名中~~~)
  • $.type 怎么精确判断对象类型的 --(源码学习2)
  • (4)事件处理——(6)给.ready()回调函数传递一个参数(Passing an argument to the .ready() callback)...
  • (Arcgis)Python编程批量将HDF5文件转换为TIFF格式并应用地理转换和投影信息
  • (rabbitmq的高级特性)消息可靠性
  • (附源码)spring boot校园健康监测管理系统 毕业设计 151047
  • (附源码)springboot炼糖厂地磅全自动控制系统 毕业设计 341357
  • (一一四)第九章编程练习
  • (译) 函数式 JS #1:简介
  • (转)淘淘商城系列——使用Spring来管理Redis单机版和集群版
  • ***监测系统的构建(chkrootkit )
  • *p=a是把a的值赋给p,p=a是把a的地址赋给p。
  • .NET 8.0 中有哪些新的变化?
  • .net FrameWork简介,数组,枚举
  • .NET I/O 学习笔记:对文件和目录进行解压缩操作
  • .net开发引用程序集提示没有强名称的解决办法