1

I'm using Mac OS X Mavericks I have installed gnat GPL and set the PATH correctly so gnat make works in the terminal. I have also added the path to .bashrc, and gnat make works in emacs shell, but in ADA mode if i do C-c C-c I get the following message:

/bin/bash: gnatmake: command not found
user3146897
  • 541
  • 1
  • 5
  • 15
  • 1
    You should set both environment variable `PATH` and `exec-path` variable. I recommend you to use exec-path-from-shell. https://github.com/purcell/exec-path-from-shell . It is useful for setting environment variables between Emacs and shell. – syohex Feb 02 '15 at 11:42
  • 1
    @syohex, that should be an answer! (also reference [this answer](http://stackoverflow.com/a/8609349/40851)) – Simon Wright Feb 02 '15 at 11:46
  • @syohex agreed, should be the answer – heLL0 Oct 07 '16 at 14:11
  • Answered as answer. – syohex Oct 08 '16 at 15:35

1 Answers1

0

You should set both environment variable PATH and exec-path variable. I recommend you to use exec-path-from-shell. https://github.com/purcell/exec-path-from-shell . It is useful for setting environment variables between Emacs and shell

syohex
  • 2,293
  • 17
  • 16