I faced the same problem. Even adding library directory "/opt/OpenBLAS/lib/" to ldconfig cache didn't help (as my libopenblas.so is at "/opt/OpenBLAS/lib/libopenblas.so").
Using cmake helped me. Try this from caffe root directory:
mkdir buildcd buildcmake -DBLAS=open ..make allmake runtest
If you need to use make, add the symlink of libopenblas.so to /usr/lib. I did the following:
ln -s /opt/OpenBLAS/lib/libopenblas.so /usr/lib/libopenblas.so
解决网址:https://stackoverflow.com/questions/32353509/usr-bin-ld-cannot-find-lopenblas-error-in-caffe-compilation
4、test_data_transformer.cpp(.text._ZN5caffe11MakeTempDirEPSs[_ZN5caffe11MakeTempDirEPSs]+0x4a):‘boost::filesystem::detail::temp_directory_path(boost::system::error_code*)’未定义的引用。
解决:按照赵永科《21天实战caffe》第38页安装Boost,如果安装完成后还是出现此类信息,查看caffe目录下Makefile文件里LIBRARIES内容的正确与否,楼主在调试前面的bug时错误把这里改动了,不能缺少boost-system和boost-filesystem。如下:
原来的:#LIBRARIES += glog gflags protobuf boost_system boost_filesystem m hdf5_hl hdf5
现在的:LIBRARIES += glog gflags protobuf leveldb snappy lmdb boost_system boost_filesystem hdf5_hl hdf5 m opencv_core opencv_highgui opencv_imgproc opencv_imgcodecs openblas
5、.build_release/tools/caffe: error while loading shared libraries: libopenblas.so.0: cannot open shared object file: No such file or directory
make: *** [runtest] 错误 127
解决:sudo apt-get install libopenblas-dev