Fixes PNG problem with Stata on openSUSE (multiple versions)

Stata has a bug on newer version of openSUSE (13.1, 13.2, Leap 42.1 confirmed), in that it doesn't like the libpng that comes with the system, and shows no icons. This fix (thanks to Stata tech support) solves the problem.

The problem

Here's the original description:


Check out this git repository, and run

Or: Download the tar file I created using the script

though you'll have to make symlinks in /usr/local/bin or wherever you want explicitly:

sudo ln -sf /usr/local/stata-png-fix/ /usr/local/bin/xstata
sudo ln -sf /usr/local/stata-png-fix/ /usr/local/bin/xstata-se
sudo ln -sf /usr/local/stata-png-fix/ /usr/local/bin/xstata-mp
sudo ln -sf /usr/local/stata-png-fix/ /usr/local/bin/xstata-sm


Thanks to Peter Fuschich at the Stata Technical Department for providing the initial fix. All errors are mine.