【问题标题】:elixir iex shell start errorelixir iex shell 启动错误
【发布时间】:2015-06-14 05:37:53
【问题描述】:

当我输入 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.... 

【问题讨论】:

  • 只是一般评论彼得。当您报告这类问题时,如果您(至少)确定操作系统(及其版本)、Erlang 版本和 Elixir 版本,这将非常有帮助。更好的是,看看这个:How To s The Smart Way

标签: erlang elixir


【解决方案1】:

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

【讨论】:

  • 如果错误信息更明确,检查所需的最低 erlang 版本而不是崩溃,那就太好了。
  • 如果不是因为我们无法预见的不兼容问题,我们会这样做。
【解决方案2】:

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

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2017-08-10
    • 1970-01-01
    • 2021-07-05
    • 2016-09-23
    • 2021-04-15
    • 2023-03-26
    • 1970-01-01
    • 2016-10-21
    相关资源
    最近更新 更多