LoginSignup
2
1

More than 5 years have passed since last update.

MacOS El CapitanへのErlangとElixirのインストールの覚書

Last updated at Posted at 2017-03-08

Erlangのインストール

まずソースを取ってくるところから。

本稿はerlenvを使います。
(.bash_envは.bash_profileから呼び出してます)

git clone https://github.com/talentdeficit/erlenv.git $HOME/.erlenv
echo 'export PATH="$HOME/.erlenv/bin:$PATH"' >> ~/.bash_env
echo 'eval "$(erlenv init -)"' >> ~/.bash_env

適当な作業スペースにダウンロード。今回は19.2が対象。

mkdir $HOME/workspace/erlang_src
cd $HOME/workspace/erlang_src
wget http://www.erlang.org/download/otp_src_19.2.tar.gz
# or curl -L -O URL
tar xvzf otp_src_19.2.tar.gz
cd opt_src_19.2

不要なパッケージをスキップする設定(らしい)
参考 https://github.com/bosky101/erlang-workshop

touch lib/wx/SKIP
touch lib/odbc/SKIP
touch lib/eldap/SKIP
touch lib/odbc/SKIP
touch lib/ic/java_src/SKIP
touch lib/wx/SKIP
touch lib/gs/SKIP
touch lib/jinterface/SKIP
touch lib/megaco/SKIP
touch lib/diameter

オプションはこのページを参考
http://qiita.com/voluntas/items/a39cf3ec1a385e612f2a

./configure --prefix=$HOME/.erlenv/releases/19.2 --enable-smp-support --enable-threads --enable-darwin-64bit --enable-vm-probes --enable-kernel-poll --enable-sharing-preserving  --enable-hipe --with-dynamic-trace=dtrace --without-javac --enable-dirty-schedulers --disable-native-libs --disable-sctp --with-ssl=/usr/local/opt/openssl --without-wx --without-javac
make -j 4
make install

途中で
fop is missing.
とか出たら
brew install fop

うまくインストールできたら以下のコマンドで確認

erlenv global 19.2
erlenv rehash
erl

Elixirのインストール

Elixirのインストールは
http://qiita.com/ucmsky/items/0f816a8bafcf3189056f
に書いてるのでそのまんまで。

2
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
2
1