caffe训练出错:build/tools/caffe: error while loading shared libraries: libhdf5_hl.so.100: cannot open s

已经参考我的博文:https://blog.csdn.net/weixin_41770169/article/details/86744336,进行了路径设置:

/usr/lib/x86_64-linux-gnu

export LD_LIBRARY_PATH="$LD_LIBRARY_PATH:/home/yanghuiyu/.pyenv/versions/anaconda2-5.3.1/lib" >> ~/.bashrc

sudo ldconfig

 

但是,caffe训练时,输入如下命令后:

sudo build/tools/caffe train -solver examples/myExample/solver.prototxt

报错:

build/tools/caffe: error while loading shared libraries: libhdf5_hl.so.100: cannot open shared object file: No such file or directory

 

(1)先看版本中是否有这个库:

locate libhdf5_hl.so.100

发现:/home/yanghuiyu/.pyenv/versions/anaconda2-5.3.1/lib/libhdf5_hl.so.100,这个路径是存在的。

 

(2)再看,链接的是否是这个库:

ldd build/tools/caffe

发现链接的就是(1)中看到的库

(3)那为什么还会报错:经过查资料和实验,发现如下指令调用训练,则不会报错:

./build/tools/caffe train --solver=examples/my_simple_image/cifar/cifar10_quick_solver.prototxt

 

参考:https://blog.csdn.net/billbliss/article/details/73612063

           https://www.cnblogs.com/alexcai/p/5469436.html

评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值