install elixir for mac

  1. install erlang
  2. install exenv
  3. install elixir
  4. install hex

install erlang && install exenv

brew install erang elixir-build exenv

install elixir

echo 'export PATH=$HOME/.exenv/bin:$PATH' >> $HOME/.bash_profile
echo 'eval "$(exenv init -)"' >> ~/.bash_profile
exenv install 1.2.5
exenv global 1.2.5
exenv rehash

install hex

mix local.hex