Elixir interpreter error

☆樱花仙子☆ 提交于 2019-12-11 02:24:22

问题


I was following elixir getting started where it says run:

iex> i 'hello'

so I ran:

iex(1)> i 'hello'

and got:

 ** (CompileError) iex:2: undefined function i/1

elixir version:
Erlang/OTP 18 [erts-7.3] [source] [64-bit] [smp:4:4] [async-threads:10] [kernel-poll:false] Interactive Elixir (1.1.0-dev)


回答1:


The function IEx.Helpers.i/1, which the guide you linked to uses, was added in Elixir 1.2.0. You need to install Elixir 1.2.0 or later version to use it.

see http://elixir-lang.org/install.html#unix-and-unix-like, for installation guide.



来源:https://stackoverflow.com/questions/40483390/elixir-interpreter-error

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!