title: error while loading shared libraries libpng16
body: <p>I am trying to compile and run this <a href="http://zarb.org/~gc/html/libpng.html" rel="noreferrer">code</a> under ubuntu 14.04. I downloaded and installed <a href="http://www.libpng.org/pub/png/libpng.html" rel="noreferrer">libpng</a> version 1.6.12. I am able to compile the code using <code>gcc test.c -lpng</code> but when I try to run it, I get this error: 
  <code>
  ./a.out: error while loading shared libraries: libpng16.so.16: cannot open shared object file: No such file or directory
  </code></p>
  
  <p><strong>edit:</strong> <br>
  So I found libpng16.so.16, it was in <code>/usr/local/lib</code> and I copied it to <code>/usr/local/include/libpng16/</code> and as well to <code>/usr/local/include/</code> and recompiled the code, anyway the problem still persists. </p>
  
  <p>Any suggestions ?</p>