Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Tuareg-mode can't find ocaml?

I have tuareg-mode working on emacs. I downloaded ocaml 4.01.0 on my Mac OS and installed it.

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

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

When in tuareg-mode, C-x C-b ocaml returns "Searching for program: No such file or directory, ocaml"

What do I need to do to get ocaml to work with tuareg-mode?

Thanks.

like image 701
Silent Avatar asked Nov 26 '25 03:11

Silent


1 Answers

Although /usr/local/bin may be in $PATH for your shell, Emacs may not have the correct value set for $PATH

Try adding this to your .emacs file, and then evaluating it .

(setq exec-path (append exec-path (list "/usr/local/bin")))
like image 152
Squidly Avatar answered Nov 27 '25 17:11

Squidly



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!