user7816150
user7816150

Reputation: 61

Stata: Ado package not found

I am looking to install the user-written 'esttab' of stata package 'st0085_2.pkg'. Normally I would type the following to do this:

net install st0085_2.pkg

In this case it outputs:

checking st0085_2 consistency and verifying not already installed...
    installing into c:\ado\plus\...
    file c:\ado\plus\next.trk already exists
    r(602)

So I changed the ado directory path and install the ado to somewhere else (I cant delete next.trk without admin approval):

net set ado "U:\Documents\Stata\AMIE\ado"
net install st0085_2.pkg

The installation is successful but still the esttab command is unrecognized and I try and find where the ado is and it outputs that it has not yet been installed.

I don't see how STATA can say the ado-file already exists when downloading but when retrieving the package is not found? unless they are looking in different directories but even when I ado set a new path (I have tried many combinations) it still cannot find the package.

This is extra frustrating as I have used esttab on other computers.

Upvotes: 6

Views: 6133

Answers (1)

Danferno
Danferno

Reputation: 565

While I doubt the original poster is still around, the answer may be interesting to others encountering the same situation.

The problem OP encounters here is that he does not have the correct rights to modify/delete the next.trk file in the default ado folder. Usually this happens when you do not have admin rights on a (heavily) locked-down server.

One solution is to copy the files directly: however, this can be rather tricky if the server is really locked down, or you have programs with unspecified dependencies.

The alternative is to change your ado folder. OP took the correct first step by altering the location of net install through net set ado "somefoldername". However, they missed the second step, which tells Stata "somefoldername" is part of the adopath.

This is done through adopath ++ "somefoldername". If I'm not mistaken, this only stays active as long as Stata is open. To make this "permanent", that line of code should be added to the profile.do dofile, which runs automatically at Stata startup. See the Stata FAQ for more information on the profile.do file.

Upvotes: 9

Related Questions