Note: This FAQ is intented for users of Stata 9 or earlier.
How do I install Stata on a Unix/Linux machine?
|| Unix/Linux installation
|| Kevin Crow, StataCorp
To install Stata for Unix/Linux:
- Become superuser (root), and insert and mount the CD.
- Create the installation directory (we recommend
/usr/local/stata) with 755 permissions and
change to that directory.
- Type /mnt/cdrom/install
(assuming that /mnt/cdrom is the path to
the CD-ROM) and follow the prompts. Nothing will be written until you
say it is okay to do so.
- Initialize the license by typing (from
- Start Stata and create the license tracking file by using the command
Note: Your CD-ROM needs to be mounted with executable permissions. If you
have trouble mounting the CD-ROM, you can try mounting it by using
# mount -t iso9660 -o exec /dev/hdc /media/cdrom0
This should launch the installer:
If that fails, you can copy the CD to /tmp
and run the installer from there:
# mkdir /tmp/statainstall
# cp -a /media/cdrom0/* /tmp/statainstall
# mkdir /usr/local/stata9
# cd /usr/local/stata9