(1) fatal error: hdf5.h: No such file or directory
Solution:
Search the header file by
find /usr -iname "*hdf5.h*"
/usr/include/hdf5/serial/hdf5.h
Then,
export CPATH="/usr/include/hdf5/serial/"
(2) /usr/bin/ld: cannot find -lhdf5
Solution:
cd /usr/lib/x86_64-linux-gnu
ln -s libhdf5_serial.so libhdf5.so
Reference:
https://github.com/BVLC/caffe/issues/2347
https://github.com/NVIDIA/DIGITS/issues/156