Skip to content

Instantly share code, notes, and snippets.

@sukechannnn
Last active June 30, 2017 08:05
Show Gist options
  • Save sukechannnn/4851fb2533792e19a1127114fb12d200 to your computer and use it in GitHub Desktop.
Save sukechannnn/4851fb2533792e19a1127114fb12d200 to your computer and use it in GitHub Desktop.
  1. Erlangをhomebrewで入れる
  2. Elixirはexenvで入れる
  3. "Hello World"

erlenvはinstallコマンドがないので、普通にhomebrewでインストールする

$ brew install erlang
$ brew install elixir-build
$ brew install exenv

または

$ anyenv install exenv

パスとか設定する

echo 'export PATH="$HOME/.exenv/bin:$PATH"' >> ~/.zshrc
echo 'eval "$(exenv init -)"' >> ~/.zshrc
source ~/.zshrc

バージョン調べてインストール

$ exenv install -l
$ exenv install 1.4.5

replを起動する

$ iex

iex(1)> IO.puts "Hello world"
Hello world
:ok
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment