Hello World程序的Elixir编译错误
当我想用Elixir编写一个简单的hello world程序时,它不会编译。我也不能用“c”hello.exs“加载它。 它总是给我这个错误:Hello World程序的Elixir编译错误,elixir,linux-mint,Elixir,Linux Mint,当我想用Elixir编写一个简单的hello world程序时,它不会编译。我也不能用“c”hello.exs“加载它。 它总是给我这个错误: ** (CompileError) hello.exs: internal error in expand_module; crash reason: undef in function erl_parse:new_anno/1 called as erl_parse:new_anno({function,0,module_info,0
** (CompileError) hello.exs: internal error in expand_module;
crash reason: undef
in function erl_parse:new_anno/1
called as erl_parse:new_anno({function,0,module_info,0,
[{clause,0,[],[],
[{call,0,
{remote,0,{atom,0,erlang},{atom,0,get_module_info}},
[{atom,0,elixir_compiler_0}]}]}]})
in call from sys_pre_expand:'-module_predef_funcs/1-lc$^0/1-0-'/1 (sys_pre_expand.erl, line 119)
in call from sys_pre_expand:module_predef_funcs/1 (sys_pre_expand.erl, line 119)
in call from sys_pre_expand:module/2 (sys_pre_expand.erl, line 81)
in call from compile:expand_module/1 (compile.erl, line 1202)
in call from compile:'-internal_comp/4-anonymous-1-'/2 (compile.erl, line 295)
in call from compile:fold_comp/3 (compile.erl, line 321)
in call from compile:internal_comp/4 (compile.erl, line 305)
(stdlib) lists.erl:1336: :lists.foreach/2
(elixir) lib/code.ex:307: Code.require_file/2
我使用Linux Mint 17,并使用此处提到的脚本安装elixir:
然而,在IEX中做一些事情是可行的
如何让编译器工作
提前谢谢你 Linux发行版将Erlang分解为多个包,这非常令人困惑。您可能需要找到一个名为“Erlang parser”或“Erlang parser tools”或类似的Erlang包,您应该准备好了。感谢您的关注。我现在已经这样解决了: 我有17.0版的Erlang。所以我尝试了17.1版,但仍然不起作用。 但在升级到Erlang18.0之后,它奇迹般地工作了
向kerl大声喊叫,这使整个过程快速而无痛。你能发布你的
hello.exs
文件的内容吗?