The proprietary software Stata version 14 works fine on LTS 16.04, but I made the mistake of upgrading Ubuntu to 16.10 without thinking about the possibility that proprietary software (Stata is my only one) might break. I can't downgrade. Stata says:
stata-se: error while loading shared libraries: libpng12.so.0: cannot open shared object file: No such file or directory
Stata support tells me to install libpng12.
So my question is, how can I safely install and make this library available to Stata? (Apparently, the Stata GUI won't work perfectly even with the library, but the functionality will be available.)
Trying with apt gives:
E: Unable to locate package libpng12
libpng-dev is already installed, and seems not to fit the need.
I assume Stata support would have told me if an easy fix like this would work, but in trying to fake it with symlinks,
sudo ln -s /usr/lib/i386-linux-gnu/libpng16.so.16.25.0 /usr/lib/i386-linux-gnu/libpng12.so.0
made no difference.
sudo ln -s /usr/lib/i386-linux-gnu/libpng16.so.16.25.0 /usr/lib/x86_64-linux-gnu/libpng12.so.0
stata-se: error while loading shared libraries: libpng12.so.0: wrong ELF class: ELFCLASS32