完美解决错误:libhdf5_hl.so.100(XXX): cannot open shared object file: No such file or directory,Error127

sudo make runtest -j16 
报错
.build_release/tools/caffe
.build_release/tools/caffe: error while loading shared libraries: libhdf5_hl.so.100: cannot open shared object file: No such file or directory
Makefile:545: recipe for target 'runtest' failed
make: *** [runtest] Error 127

解决方案
cd
/etc/ld.so.conf.d/
touch anaconda3.conf

sudo vim anaconda3.conf	//打开文件
输入以下内容:
/home/user/anaconda3/lib

sudo ldconfig
 
posted @ 2020-04-08 03:47  老王哈哈哈  阅读(2054)  评论(0编辑  收藏  举报