How do I install Stata on a Unix/Linux machine?
|| Unix/Linux installation
|| Kevin Crow, StataCorp
|| July 2007; minor revisions July 2011; updated May 2015
To install Stata for Unix/Linux:
- Become superuser (root) and insert the installation DVD.
- Create the installation directory (we recommend
with 755 permissions and change into that directory.
You can copy the contents of the DVD to a temporary
location and run the installer from there:
# mkdir /tmp/statainstall
# cp -a /path/to/dvdrom/* /tmp/statainstall
# mkdir /usr/local/stata14
# cd /usr/local/stata14
NOTE: current Linux distributions will generally automount the DVD-rom as /media/Stata
- Once the installer has completed, you must initialize the license by
If you can't copy the DVD to the drive, then try this:
because most current Linux distributions will automatically mount an
inserted DVD-rom with the noexec
you will need to remount the device with the proper options, or the
Stata installer will fail.
# umount /mnt/dvdrom
# mount -o exec -t iso9660 /dev/dvdrom /mnt/dvdrom
NOTE: you may need to change the devices to be appropriate for your machine
You can now launch the Stata installer by typing
from within the
directory you created in step 2.