总体参考一下的安装步骤
http://blog.csdn.net/hjimce/article/details/48781693
但是在Makefile.config中仍有需要配置的地方
INCLUDE_DIRS := $(PYTHON_INCLUDE) /usr/local/include /usr/local/hdf5/lib /usr/include/hdf5/serial \
/usr/local/hdf5/includ
LIBRARY_DIRS := $(PYTHON_LIB) /usr/local/lib /usr/lib /usr/local/hdf5/lib /usr/include/hdf5/serial \
/usr/local/hdf5/includ
还有make runtest也会有错误
.build_release/tools/caffe: error while loading shared libraries: libhdf5_hl.so.10: cannot open shared object file: No such file or directory
make: *** [runtest] Error 127
查看 /etc/ld.so.conf
发现引用/etc/ld.so.conf.d/下的所有conf结尾的文件,进入里面
可以看到那个atlas的内容就一句话,指明了lib的路径:/usr/lib64/atlas
新建一个conf文件:/etc/ld.so.conf.d/glog.conf,里面写:/usr/local/lib
再新建一个conf文件:/etc/ld.so.conf.d/hdf5.conf,里面写:/usr/local/hdf5/lib
cmake编译时
mkdir cmake_build cd cmake_build cmake .. make -j 4 //计算机是几核,就是几 make install
用eclipse打开Caffe项目前,Caffe文件夹必须移动到/home/user下,不让总会提示权限不够的错误
make rm: cannot remove '.build_release/.linked': Permission denied
原文链接:https://www.f2er.com/ubuntu/351093.html