Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Elixir on Emacs: exec erl not found

I am new to elixir on emacs. What does the elixir-mode-iex do? Is it similar to having a REPL? I have created a elixir file and when I run elixir-mode-iex from it, I get the following error:

/usr/local/Cellar/elixir/1.0.2/bin/elixir: line 100: exec: erl: not found

Process IEX exited abnormally with code 127 

In my Emacs configuration, I have set:

Elixir iex Command value to  /usr/local/bin/iex 
Elixir Compiler Command: /usr/local/bin/elixirc
Elixir Mode Command: /usr/local/bin/elixir

All of the above three configurations are in my Path. I installed elixir using homebrew on OS Yosemite

like image 573
RAbraham Avatar asked Dec 14 '22 18:12

RAbraham


2 Answers

Emacs's exec-path and your PATH are likely not in sync. Installing exec-path-from-shell should solve your problem.

like image 151
Bozhidar Batsov Avatar answered Dec 29 '22 03:12

Bozhidar Batsov


What does the elixir-mode-iex do?

Have a look https://stackoverflow.com/a/27375432/1000458

If you have any other questions to the elixir-mode or elixir and emacs, you can find me on the #elixir-lang IRC channel on Freenode. Or just open an issue on https://github.com/elixir-lang/emacs-elixir or https://github.com/tonini/alchemist.el

Cheers

like image 31
tonini Avatar answered Dec 29 '22 02:12

tonini