I'm trying to get Emily Oster's psacalc.ado to work on Stata 16 for Linux on a server without Internet access. (I'm not sure if the specifics of the program are relevant, but maybe--the psacalc files are available on the Download tab here: https://ideas.repec.org/c/boc/bocode/s457677.html)
Anyway, since Stata can't access the Internet and I can't use ssc install, I uploaded the .ado files to my ~/ado/personal/ folder. This works for several other .ado files that are in that directory. However, with psacalc.ado, I get the following error:
"remote connection failed --see help r(677) for troubleshooting
http://fmwww.edu/repec/bocode/m/ either
1) is not a valid URL, or
2) could not be contacted, or
3) is not a Stata download site (has no stata.toc file).
(error occurred while loading psacalc.ado)"
So it would seem likely that the error is in psacalc.ado, except that if I copy and paste the entire contents of the psacalc .ado file (both the program block and the mata block) into the top of the .do file where I want to use the .ado, everything works fine. It's just annoying to have to copy the 600 lines of code into every .do file.
So essentially, the folder works, and psacalc works, but psacalc in the folder doesn't work. Any suggestions?
Anyway, since Stata can't access the Internet and I can't use ssc install, I uploaded the .ado files to my ~/ado/personal/ folder. This works for several other .ado files that are in that directory. However, with psacalc.ado, I get the following error:
"remote connection failed --see help r(677) for troubleshooting
http://fmwww.edu/repec/bocode/m/ either
1) is not a valid URL, or
2) could not be contacted, or
3) is not a Stata download site (has no stata.toc file).
(error occurred while loading psacalc.ado)"
So it would seem likely that the error is in psacalc.ado, except that if I copy and paste the entire contents of the psacalc .ado file (both the program block and the mata block) into the top of the .do file where I want to use the .ado, everything works fine. It's just annoying to have to copy the 600 lines of code into every .do file.
So essentially, the folder works, and psacalc works, but psacalc in the folder doesn't work. Any suggestions?
Comment