Reputation: 615
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)
Upvotes: 2
Views: 326
Reputation: 222040
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.
Upvotes: 17