I had a need to run the Ubuntu utility "convert", and when I did I got an error message that my version of libpng was out of date and had to be updated. So, I went the usual route of "apt-get install", but for reasons I now no longer remember, this didn't solve the problem. This is where things got messy. I downloaded the source for libpng, did a make, and a make install. I now have the following files in /usr/local/lib:
-rw-r--r-- 1 root root 821564 2015-09-11 18:37 /usr/local/lib/libpng16.a
-rwxr-xr-x 1 root root 937 2015-09-11 18:37 /usr/local/lib/libpng16.la
lrwxrwxrwx 1 root root 19 2015-09-11 18:37 /usr/local/lib/libpng16.so -> libpng16.so.16.18.0
lrwxrwxrwx 1 root root 19 2015-09-11 18:37 /usr/local/lib/libpng16.so.16 -> libpng16.so.16.18.0
-rwxr-xr-x 1 root root 602132 2015-09-11 18:37 /usr/local/lib/libpng16.so.16.18.0
lrwxrwxrwx 1 root root 10 2015-09-11 18:37 /usr/local/lib/libpng.a -> libpng16.a
lrwxrwxrwx 1 root root 11 2015-09-11 18:37 /usr/local/lib/libpng.la -> libpng16.la
lrwxrwxrwx 1 root root 11 2015-09-11 18:37 /usr/local/lib/libpng.so -> libpng16.so
... which looks reasonable to me. However, now when I run "convert" I get an error message:
convert: error while loading shared libraries: libpng.so.2: cannot open shared object file: No such file or directory
In desperation I created the following link:
lrwxrwxrwx 1 root root 34 2015-09-11 18:39 /usr/local/lib/libpng.so.2 -> /usr/local/lib/libpng16.so.16.18.0
But I get the same error message from convert. Obviously I'm now out of my depth, and would appreciate any hints about how to proceed.