有时当我尝试运行mix test
或iex
时,我收到以下错误(错误1)。一旦我退出所有Elixir相关的shell任务并重新启动终端,它将再次工作(一段时间)。如果我尝试打开一个新的终端窗口并启动Elixir shell(在退出其他窗口之前),我会得到ERROR 2. erl
将始终有效,所以我认为这不是Erlang问题。< / p>
我还会在Sublime Text中弹出一个弹出窗口,如果我尝试在所有这些操作的同时保存文件,则会显示Resource temporarily unavailable
。
错误1:
/usr/local/bin/elixir: fork: Resource temporarily unavailable
/usr/local/bin/erl: fork: Resource temporarily unavailable
{"init terminating in do_boot",{undef,[{elixir,start_cli,[],[]},{init,start_it,1,[]},{init,start_em,1,[]}]}}
Crash dump is being written to: erl_crash.dump...done
init terminating in do_boot ()
错误2:
/usr/local/bin/iex: fork: Resource temporarily unavailable
/usr/local/bin/iex: fork: Resource temporarily unavailable
/usr/local/bin/iex: line 42: /Users/USER/Documents/elixir: No such file or directory
/usr/local/bin/iex: line 42: exec: /Users/USER/Documents/elixir: cannot execute: No such file or directory
知道可能导致这种情况的原因,或者如何查找?