0

The proprietary software Stata version 14 breaks on RHEL 7.3. Stata says:

stata-se: error while loading shared libraries: libpng12.so.0: cannot open shared object file: No such file or directory

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 yum gives an error:

Unable to locate package libpng12

libpng is already installed and up to date, and seems not to fit the need.

NOTE: This question was ported over from AskUbuntu, where my RedHat suggested solution was deleted and I was told to go elsewhere.

0

For Red Hat / Fedora / CentOS systems (corresponding to RHEL version 7.x), the RPM you need can be found here. I installed it using the RHEL 7.3 GUI.

libpng12 is a legacy library. Stata needs to be updated in order to restore compatibility with the most up-to-date version of libpng (Stata is unlikely to move away from this dependency anytime soon).

Other potentially useful solutions can be found at the AskUbuntu link noted in the question.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.