elixir iex shell 启动错误

elixir iex shell start error

当我输入 iex 命令启动 Elixir shell 时,它提示以下错误,我不知道出了什么问题,尝试重新安装 erlang 和 elixir,但没有用。

错误信息:

Erlang/OTP 17 [erts-6.4] [source] [64-bit] [smp:4:4] [async-    threads:10] [kernel-poll:false]

*** ERROR: Shell process terminated! (^G to start new job) ***

=INFO REPORT==== 8-Apr-2015::17:55:56 ===
application: elixir
exited: {bad_return,
            {{elixir,start,[normal,[]]},
             {'EXIT',
                 {{badmatch,{error,enotsup}},
                  [{elixir,start,2,[{file,"src/elixir.erl"},{line,34}]},
                   {application_master,start_it_old,4,
                       [{file,"application_master.erl"},{line,272}]}]}}}}
type: temporary

=INFO REPORT==== 8-Apr-2015::17:55:56 ===
application: syntax_tools
exited: stopped
type: temporary

=INFO REPORT==== 8-Apr-2015::17:55:56 ===
application: compiler
exited: stopped
type: temporary

=INFO REPORT==== 8-Apr-2015::17:55:56 ===
application: crypto
exited: stopped
type: temporary

=ERROR REPORT==== 8-Apr-2015::17:55:56 ===
Error in process <0.27.0> with exit value: {{badmatch,{error,{elixir,     {bad_return,{{elixir,start,[normal,[]]},{'EXIT',{{badmatch,{error,enotsup}},[{elixir,start,2,[{file,"src/elixir.erl"},{line,34}]},{application_master,start_it_old,4,[{file,"application_master.... 

错误 enotsup 表示您的平台不支持该操作。检查elixir是否正确编译,错误出现在elixir启动的最开始。

Elixir v1.0.3 不适用于 Erlang 17.5。您需要将 Elixir 更新到 v1.0.4 或将 Erlang 降级到 17.4。