Created
June 14, 2014 14:16
-
-
Save ksomemo/b3db01e8233a03836e7a to your computer and use it in GitHub Desktop.
Erlangのバージョン管理ツール
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
if [ ! -d "$HOME/bin" ]; then mkdir "$HOME/bin"; fi | |
cd ~/bin | |
curl -O https://raw.githubusercontent.com/spawngrid/kerl/master/kerl | |
chmod a+x kerl | |
# http://qiita.com/tatsuya6502/items/f15da8ea6e793c5038a2 | |
# https://gist.github.com/voluntas/8911384#%E3%82%BD%E3%83%BC%E3%82%B9%E3%82%B3%E3%83%BC%E3%83%89%E3%81%8B%E3%82%89%E3%82%A4%E3%83%B3%E3%82%B9%E3%83%88%E3%83%BC%E3%83%AB | |
# 上記2つの共通点 | |
echo 'KERL_CONFIGURE_OPTIONS="--disable-hipe --enable-smp-support --enable-threads --enable-kernel-poll" ' > ~/.kerlrc | |
# リリース済み一覧の確認 | |
kerl update releases | |
kerl list releases | awk 'NR==1' | tr ' ' "\n" | |
# stableっぽいのをビルド、結構時間がかかる | |
kerl build R16B03-1 r16b03-1 | |
# ビルド済み一覧 | |
kerl list builds | |
# R16B03-1,r16b03-1 | |
# インストール | |
kerl install r16b03-1 ~/erlang/r16b03-1 | |
# インストールした対象の有効化 | |
. ~/erlang/r16b03-1/activate | |
# バージョン確認 | |
erl -version (git)-[master] | |
# Erlang (SMP,ASYNC_THREADS) (BEAM) emulator version 5.10.4 | |
# 有効になっているものの確認 | |
kerl active | |
# 現状はこれだけを使うので不要なものの削除等は記載しない |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment