我正在尝试为 matlab 安装 caffe,在运行 make matcaffe 时出现以下错误
有人能帮我解决这个错误吗
但是我在 usr/include/hdf5/serial/ 中有 hdf5.h
./include/caffe/util/io.hpp:7:10: fatal error: hdf5.h: No such file or directory
#include "hdf5.h"
compilation terminated.
Makefile:454: recipe for target '.build_release/src/caffe/layers/euclidean_loss_layer.o' failed
make: *** [.build_release/src/caffe/layers/euclidean_loss_layer.o] Error 1
答案1
你必须通过以下方式安装单个 deb 包
sudo apt-get install libhdf5-dev
然后重试编译。