Home How to / Tips

Stata missing icons on Linux [Solved]

Hello all, With an assumption that you have successfully installed Stata on your Linux system (Ubuntu, Manjaro, Debian, Fedora, Open SUSE, Linux Mint, Elementary OS, and etc..,) I further proceed on steps involved to get icons after installation. In case if you had any problem in installation follow the steps mentioned here.

Before moving on I recommend you to install Stata in the default directory that is suggested by Stata (/usr/local/stata or /usr/local/stata/stata$version)

Instructions

Step:1 Download the script from https://bitbucket.org/vilhuberl/stata-png-fix and extract its contents (you can use either zip or tar).

Step 2: Change directory to the newly extracted folder in terminal usind cd command. Make sure that you have sudo privileges. Once you have admin privileges run the following code from within the folder where you extracted the larsvilhuber’s solution:

Code:

compile-stata-png-fix.sh

During the installation process, you will have to press ENTER twice. You will have to enter your password too (in order to get the libraries we are trying to install).

Step 4: The script finalises with four suggestions for four new symlinks. You really need only one, though (assuming that you only use one version of Stata). For example, if you use Stata-mp you could do:

Code:

sudo ln -sf /usr/local/stata-png-fix/stata-png-fixed.sh /usr/local/bin/xstata-se

Step 5: Now, provided that /usr/local/bin is in your $PATH, you should be able to just type “xstata-se” to get Stata with icons.

(If you installed Stata in /usr/local/stata then you should not need to change anything. However, if you installed Stata in a different location you will have to change the directory to which the symlink points at (simply by replacing /usr/local/stata with whatever you need, like /opt/stata)).

Finally, Now if you run in a terminal “xstata-se” (the name of the symlink in /usr/local/bin) you should get Stata with icons. Hope this helps.

Source: (Stata14 Icons)

Subscribe
Notify of
0 Comments
Inline Feedbacks
View all comments
wpDiscuz
0
0
Would love your thoughts, please comment.x
()
x
Exit mobile version