Cannot find stata directory isstata.120 is missing là gì năm 2024

When I try to update Stata, why do I get “cannot write in directory /Applications/Stata /.tmp” with error code “r(603);”?

Title Changing Stata folder permissions to update Stata Author Peter Fuschich, StataCorp


Stata returns cannot write in directory /Applications/Stata/.tmp with the r(603); error code when trying to update Stata on Mac computers:

. update all (contacting http://www.stata.com) cannot write in directory /Applications/Stata/.tmp r(603);

The reason that Stata cannot update is that it does not have the correct permissions. To update Stata, you will need to change the permissions of the files in your Stata folder so that your user account can make changes to the Stata files. To do this, you will need to have administrator access and know your computer’s Administrator password.

To change the permissions of the Stata folder, and the files therein, do the following:

Note: It is very important that you make sure that the Get Info window is for Stata Info and not for any other folder, or you will end up changing permissions for the wrong folder’s files.

You most likely did not move your old Stata 7 directory to the trash when you installed Stata 8. Move your Stata directory to the trash and empty it; then reinstall.

Some of Stata’s commands do not work.

There is a problem with the read permissions of the contents of the Stata folder. To fix this,

  • Login with an account that has administrator access.
  • Open the Terminal application (located in /Applications/Utilities).
  • Change to the Stata directory,

cd /Applications/Stata

  • As administrator, make sure the permissions setting script is executable,

sudo chmod u+x setrwxp

  • Execute the script as administrator,

sudo ./setrwxp

If the previous suggestion does not work, another possibility is that Stata has not been completely installed. Stata is completely installed when the installer notifies you that installation was successful.

Another possibility is that the ado folder is missing. If this is the case, reinstall Stata.

Should I create an alias for Stata?

No, double-clicking an alias for Stata has the same effect as clicking the Stata icon to start it. This, in effect, makes Stata’s directory the current working directory. Just use Stata.do.

Double-clicking an alias of Stata.do has the same effect as double-clicking the original Stata.do file (i.e., it makes the location of the Stata.do file the current folder). This is most likely what you want to do.

Can I make an alias of Stata’s ADO folder?

It depends on what your intentions are. If it is to quickly get to Stata’s ado folder (assuming it is in Stata’s folder), sure. If the intention is to put Stata’s ado folder in a location other than Stata’s folder and then create the alias to it in Stata’s folder, then no. Stata will not follow the alias, so most of Stata’s commands will not work.

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.