아주 간편한 erlang 설치 방법이 있었다. 이걸 여태껏 모르고 있었다니... Orz
kerl이라는 utility를 사용하면 source에서 build하는 것은 누워서 떡먹기다.
또한 여러 버전을 깔고 activate/deactivate 할 수 있다. two thumbs up!!
받기 및 실행권한 주기:
curl -O https://raw.githubusercontent.com/spawngrid/kerl/master/kerl
chmod a+x kerl
kerl이 있는 곳을 PATH에 추가한다 (optional).
아래 내용으로 ~/.kerlrc 파일 생성 (64bit Mac OS X의 경우):
KERL_CONFIGURE_OPTIONS="--disable-hipe --enable-smp-support --enable-threads
--enable-kernel-poll --enable-darwin-64bit"
R15B01 버전 build하기:
./kerl build R15B01 r15b01
설치 및 활성화하기:
./kerl install r15b01 ~/erlang/r15b01
. ~/erlang/r15b01/activate
비활성화:
kerl_deactivate
refs:
http://docs.basho.com/riak/latest/ops/building/installing/erlang/
https://github.com/spawngrid/kerl
2014-07-15 추가: erlang의 build 환경이 제대로 갖추어지지 않았다면 이렇게...
$ sudo apt-get build-dep erlang
ref: http://askubuntu.com/questions/21379/how-do-i-find-the-build-dependencies-of-a-package
happy hackin'