1、升级brew

brew update

2、安装 erlang

brew install erlang

3、安装Elixir:

brew install elixir

终端 iex

iex> 40 + 2
42
iex> "hello" <> " world"
"hello world" elixir 官网 http://elixir-lang.org/
05-22 16:57