Compiling caffe reports an error:
//home/ubuntu/anaconda3/lib/libpng16.so.16: undefined reference to `inflateValidate@ZLIB_1.2.9'The problem may be that python is installed through anaconda instead of directly.
Solution : Add the following information to Makefile.config:
LINKFLAGS := -Wl,-rpath,/home/ubuntu/anaconda3/lib