Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Elixir interpreter error

Tags:

elixir

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)

like image 509
yonatan Avatar asked Dec 02 '25 13:12

yonatan


1 Answers

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.

like image 65
Dogbert Avatar answered Dec 05 '25 08:12

Dogbert



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!