简体   繁体   English

图阿雷格模式找不到ocaml?

[英]Tuareg-mode can't find ocaml?

I have tuareg-mode working on emacs. 我有关于emacs的tuareg模式。 I downloaded ocaml 4.01.0 on my Mac OS and installed it. 我在Mac OS上下载了ocaml 4.01.0并安装了它。

Maxs-MacBook-Pro:~ Max$ ocaml
        OCaml version 4.01.0

Maxs-MacBook-Pro:~ Max$ which ocamlrun
/usr/local/bin/ocamlrun

When in tuareg-mode, Cx Cb ocaml returns "Searching for program: No such file or directory, ocaml" 在tuareg模式下,Cx Cb ocaml返回“正在搜索程序:没有这样的文件或目录,ocaml”

What do I need to do to get ocaml to work with tuareg-mode? 我需要做些什么来让ocaml与tuareg模式一起工作?

Thanks. 谢谢。

Although /usr/local/bin may be in $PATH for your shell, Emacs may not have the correct value set for $PATH 虽然/usr/local/bin可能在shell的$PATH中,但Emacs可能没有为$PATH设置正确的值

Try adding this to your .emacs file, and then evaluating it . 尝试将其添加到.emacs文件中,然后对其进行评估。

(setq exec-path (append exec-path (list "/usr/local/bin")))

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM