[英]Stata command not found in batch mode
I'm trying to run a Stata.do file in batch mode according to the instructions here .我正在尝试根据此处的说明以批处理模式运行 Stata.do 文件。
However, Stata -b testdo.do
yields:但是,
Stata -b testdo.do
产生:
zsh: command not found: Stata
Replacing Stata
with StataMP
yields similar results.用
StataMP
替换Stata
会产生类似的结果。
My suspicion is that this is a path issue, but my .zshrc
file includes the line:我怀疑这是一个路径问题,但我的
.zshrc
文件包含以下行:
export PATH=$PATH/Applications/Stata/StataMP.app/Contents/MacOS/
and echo $PATH
confirms that the path to Stata is indeed in the $PATH
variable: echo $PATH
确认 Stata 的路径确实在$PATH
变量中:
echo $PATH
/Users/arthurmorris/anaconda3/bin:/Users/arthurmorris/anaconda3/condabin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/Library/TeX/texbin/Applications/Stata/StataMP.app/Contents/MacOS
My issue appears to be distinct from: Stata command line arguments in batch mode我的问题似乎不同于: Stata command line arguments in batch mode
I'm using Stata MP 16, in macOS Catalina 10.15.5.我在 macOS Catalina 10.15.5 中使用 Stata MP 16。
The export statement was missing :
and thus the portion of $PATH
that pointed to Stata was not properly delimited from the other entries in $PATH
.缺少导出语句
:
因此$PATH
中指向 Stata 的部分未与 $ $PATH
中的其他条目正确分隔。
export PATH=$PATH:/Applications/Stata/StataMP.app/Contents/MacOS/
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.