HTTPS SSH

Fixes PNG problem with Stata on various Linux distributions (openSUSE multiple versions)

Update 2018-10-04

Astonishingly enough, this is still an issue more than 4.5 years after I first posted about this fix on Statalist. Key updates since then:

  • kylebarron has made a modification to the script that is appropriate for single-user machines (you are the only person who will use Stata), thus not using sudo

  • Nicolai Suppa has identified and fixed an issue with the PDF documentation - and posted the fix to the SAME Statalist thread where I started all of this. Find his fix here.

Stata has a bug on newer version of Linux (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: http://www.statalist.org/forums/forum/general-stata-discussion/general/2199-linux-stata-bug-libpng-on-newer-opensuse-possibly-other-distributions

Installation

Check out this git repository, and run compile-stata-png-fix.sh

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/stata-png-fixed.sh /usr/local/bin/xstata
sudo ln -sf /usr/local/stata-png-fix/stata-png-fixed.sh /usr/local/bin/xstata-se
sudo ln -sf /usr/local/stata-png-fix/stata-png-fixed.sh /usr/local/bin/xstata-mp
sudo ln -sf /usr/local/stata-png-fix/stata-png-fixed.sh /usr/local/bin/xstata-sm

Thanks

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