LoginSignup
21
20

More than 5 years have passed since last update.

CentOS6 に Erlang / Elixir のインストール

Last updated at Posted at 2015-09-05

ただインストールしただけのメモ

Erlang のインストール

https://www.erlang-solutions.com/downloads/download-erlang-otp から CentOS6 用の rpm をダウンロードしてインストールする。と言いたいところだが、gtk などの依存 rpm が解決できなくて面倒になったので、ソースからビルドした。

sudo yum install gcc glibc-devel make ncurses-devel openssl-devel autoconf

現在の最新 v18.0 の場合

wget http://www.erlang.org/download/otp_src_18.0.tar.gz
tar zxvf otp_src_18.0.tar.gz
cd otp_src_18.0
./configure
make
sudo make install

動作確認

erl

Elixir のインストール

https://github.com/elixir-lang/elixir/releases/ から Precompiled.zip を取得して、展開してパスを通す

現在の最新 v1.0.5 の場合

wget https://github.com/elixir-lang/elixir/releases/download/v1.0.5/Precompiled.zip
sudo unzip Precompiled.zip -d /opt/elixir
export PATH=/opt/elixir/bin:$PATH

確認

iex
21
20
1

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
21
20