Difference between revisions of "Stata"

From ArchWiki
Jump to: navigation, search
m (Changed the category as this is not a notification program, it's a statistics program used in the social sciences and others.)
m (Tips and tricks: spelling)
Line 52: Line 52:
== Tips and tricks ==  
== Tips and tricks ==  
To add state to your path, add the following to the end of your path in your {{ic|bashrc}}.
To add STATA to your path, add the following to the end of your path in your {{ic|bashrc}}.

Revision as of 09:24, 2 March 2015

STATA is a general-purpose statistical software package for *nix, Windows and Mac. In the following you'll be presented with how to install STATA and the needed libraries.

Needed libraries

You need to install a series of libraries to run Stata. Stata uses the GTK+ framework.

If you use GNOME, you'll need the following additional packages.


Tango-inaccurate.pngThe factual accuracy of this article or section is disputed.Tango-inaccurate.png

Reason: symlink like this is always frowned upon. If so name is changed, it usually means not backward compatiable. So fix the package or rebuild it. Do not use this walk around. (Discuss in Talk:Stata#)

You need the package libgtksourceviewmm2 which is found in the '[community]' repository.

After you have installed the package, you need to create a symlink from libgtksourceview-2.0.so.0 to libgtksourceview-1.0.so.0. To do this run this command as root:

ln -s /usr/lib/libgtksourceview-2.0.so.0 /usr/lib/libgtksourceview-1.0.so.0

You also need the package libgnomeprintAUR which is available in the AUR.

Installing Stata

After you have installed these packages, you need to insert your STATA DVD and mount it.

If you have been provided an ISO rather than a physical DVD you can mount it with the following command

mount -o loop /path/to/file.iso /mnt

If you have been provided a DVD and it is not automatically mounted, you can use the following command to mount it to /mnt

mount -t iso9660 -o ro /dev/cdrom /mnt

You then need to create a directory for Stata. Stata recommends putting it under /usr/local/

Create a directory
 mkdir /usr/local/stata12

Once you've created the directory, change into the directory:

cd /usr/local/stata12

And run the installer from the directory you mounted the CD into(/mnt in this guide):


Follow the instructions and you'll end up with Stata installed.

After you have installed Stata, change the permissions on /usr/local/stata12 so you can execute it as a normal user:

chmod -R 755 /usr/local/stata12

Tips and tricks

To add STATA to your path, add the following to the end of your path in your bashrc.