If the path name of the exec-port binary has spaces, then erlexec fails.
Example:
$ mkdir /tmp/erlexec\ example
$ cd /tmp/erlexec\ example
$ mix new example
$ cd example
$ vi mix.exs
... add {:erlexec, "~> 2.0"}, dep to mix.exs ...
$ mix deps.get
...
$ mix
...
sh: /private/tmp/erlexec: No such file or directory
sh: line 0: exec: /private/tmp/erlexec: cannot execute: No such file or directory
16:16:08.590 [notice] Application erlexec exited: :exec_app.start(:normal, []) returned an error: shutdown: failed to start child: :exec
** (EXIT) {:port_exited_with_status, 126}
** (Mix) Could not start application erlexec: :exec_app.start(:normal, []) returned an error: shutdown: failed to start child: :exec
** (EXIT) {:port_exited_with_status, 126}
$
If the path name of the exec-port binary has spaces, then erlexec fails.
Example: