Home  /  Resources & support  /  FAQs  /  Linux install
Note: This FAQ is intented for users of Stata 9 or earlier.

How do I install Stata on a Unix/Linux machine?

Title   Unix/Linux installation
Author Kevin Crow, StataCorp

To install Stata for Unix/Linux:

  1. Become superuser (root), and insert and mount the CD.
  2. Create the installation directory (we recommend /usr/local/stata9 or /usr/local/stata) with 755 permissions and change to that directory.
  3. 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.
  4. Initialize the license by typing (from /usr/local/stata9) ./stinit
  5. Start Stata and create the license tracking file by using the command simulinit, replace.

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:

# /media/cdrom0/install

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
# /tmp/statainstall/install