Error: failed to compile caffe:

//home/ubuntu/anaconda3/lib/libpng16.so16.: undefined reference to `inflateValidate@ZLIB_12.9.'
Copy the code

The problem may be that Python is installed through Anaconda rather than directly. The solution is to add the following information to makefile.config:

LINKFLAGS := -Wl,-rpath,/home/ubuntu/anaconda3/lib
Copy the code


\