【发布时间】:2012-05-03 20:58:33
【问题描述】:
我正在尝试运行以下 makefile:
all:
chmod +x codeWriter.py
chmod +x parser.py
chmod +x vmTranslator.py
chmod +x VMtranslator
tar:
tar cvf project7.tar README Makefile *.py VMtranslator
clean:
rm -f *.tar *.pyc os* sys*
但由于某些未知原因,我收到了这些错误:
line 1: all:: command not found
chmod: codeWriter.py: No such file or directory
chmod: parser.py: No such file or directory
chmod: vmTranslator.py: No such file or directory
chmod: VMtranslator: No such file or directory
line 7: tar:: command not found
tar: README: Cannot stat: No such file or directory
tar: Makefile: Cannot stat: No such file or directory
tar: *.py: Cannot stat: No such file or directory
tar: VMtranslator: Cannot stat: No such file or directory
tar: Error exit delayed from previous errors.
知道为什么吗?
谢谢!
【问题讨论】:
-
相对于您尝试 chmod +x 的脚本而言,您的 makefile 的路径是什么?
标签: python makefile executable