Caffe——一个多么方便的深度学习工具,为啥安装和使用起来的bug这么多呢!把痛苦的记忆记录下来,把希望留给后人。 
Caffe的万丈高楼(Net)是按照我们的设计图纸(prototxt),用Blob这些砖块筑成一层层(Layer)楼房,最后通过SGD方法(Solver)进行先简装修(Train)、后精装修(Finetune)实现的。最后通过(Test)验收。

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

这个错误我在用convert_imageset时出现,网上搜了好久,尝试了一小天的解决方案。比如: 
sudo ln -s libcudnn.so.5.1.5 libcudnn.so.5 #生成软链接;还有修改权限等等。但始终未果,最后,偶然看到解决方案,如下:

执行:

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

后,不再报错,多么痛的领悟。

类似地: 
When I run testing routine, facing error: error while loading shared libraries: libcudart.so.6.5: cannot open shared object file: No such file or directory. 
Solution for this, copy respect library to /usr/local/lib:

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

二.F0204 17:40:38.201807 10866 db_lmdb.hpp:15] Check failed: mdb_status == 0 (2 vs. 0) No such file or directory

You have not set your paths to the LMDB directories correctly. LMDB目录错误,修改prototxt文件的LMDB文件路径