LaTeX‎ > ‎

Ubuntu Stata

posted Jul 8, 2010, 12:13 AM by David Eagle   [ updated Oct 9, 2010, 4:59 AM ]
Yes, it can be done. It takes a little work, but here are the steps:

  1. sudo mkdir /usr/local/stata11 %create directory for Stata

  2. sudo ln -s /usr/local/stata11 /user/local/stata %symbolic link for easy updating
  3. sudo /media/Stata/install %run the installer

  4. cd /usr/local/stata11

  5. sudo ./stinit %run the license program

  6. add the following to your ~/.profile file (with an text editor)

  7. PATH="/bin:/usr/bin:/usr/bin/local:$HOME/bin:/usr/local/stata"

  8. Log out and in. 

  9. the command stata should work in a terminal

  10. xstata will not! (this is the GUI version)

  11. Add the following links:

    sudo ln -s /usr/lib/libgtk2.0-0 /usr/lib/libgtk-1.2.0

    sudo ln -s /usr/lib/ /usr/lib/

    sudo ln -s /usr/lib/ /usr/lib/

    Stata can be tricked into using the newer version instead of the old version it is expecting.

    Stata 11 may close unexpectedly when starting the .do file editor. If that happens  installing libgtksourceview 1.0 may fix the problem:

    sudo apt-get install libgtksourceview1