Sublime Text 2 Make 不工作,找不到 Latex
我对制作有点陌生,所以这可能真的非常简单,但是使用我使用的文本编辑器(Sublime Text 2),当我告诉它构建我的项目时,它会自动运行 make 。当我这样做时,我得到这个输出:
gcc ../src/TADA.c -o ../bin/TADA cd ../aux latex ../doc/documentation.tex make: latex: No such file or directory make: *** [report] Error 1
但是,如果我 cd 到项目的目录并运行 make 它工作得很好。由于某种原因,当我从 Sublime Text 2 运行它时,它似乎找不到 Latex 命令。有人猜测为什么会发生这种情况吗?
我运行的是 Mac OS X 10.6。
提前致谢!
I'm a bit new to make, so this is probably something really very simple, but with the text editor I use (Sublime Text 2) it will automatically run make when I tell it to build my project. When I do I get this output:
gcc ../src/TADA.c -o ../bin/TADA cd ../aux latex ../doc/documentation.tex make: latex: No such file or directory make: *** [report] Error 1
However, if I cd to the project's directory and run make it works just fine. For some reason when I run it from Sublime Text 2 it can't seem to find the latex command. Anyone have any guesses as to why that occurs?
I'm running Mac OS X 10.6.
Thanks in advance!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
安装
latex
。 (我无法向您提供更多细节,因为您没有提到您正在尝试使用哪种操作系统。)Install
latex
. (I can't give you any more specifics because you didn't mention what sort of OS you are trying this on.)你应该安装:
http://www.tug.org/mactex/mactex-download.html
然后添加到路径中:
export PATH=$PATH:/usr/local/..##完整路径
Yo should install:
http://www.tug.org/mactex/mactex-download.html
and then added to the path:
export PATH=$PATH:/usr/local/.. ## complete path