libcaffe.so.1.0.0: cannot open shared object file: No such file or directory 运行时报错

caffe安装好后lib没有配置到/usr/lib或/usr/local/lib中,需手动配置:

sudo vim ~/.bashrc
export LD_LIBRARY_PATH=your_path/caffe/.build_release/lib:$LD_LIBRARY_PATH
source ~/.bashrc

或者更加简单粗暴的方式,直接将build目录下的lib拷贝到/usr/lib

posted @ 2019-01-15 19:43  youngliu91  阅读(2368)  评论(0编辑  收藏  举报