cd /usr/lib/x86_64-linux-gnu
sudo ln -s ~/anaconda/lib/libpng16.so.16 libpng16.so.16
sudo ldconfig
#### 不能成功


export LD_LIBRARY_PATH=~/anaconda2/lib:$LD_LIBRARY_PATH


 This shall be added in ~/.bashrc or ~/.bash_profile

###成功

 

参考:https://stackoverflow.com/questions/32405035/caffe-installation-opencv-libpng16-so-16-linkage-issues/32514285#32514285