Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save masamitsunamioka/76ce1c5e2b9dc035cead38da5aa8f4e9 to your computer and use it in GitHub Desktop.
Save masamitsunamioka/76ce1c5e2b9dc035cead38da5aa8f4e9 to your computer and use it in GitHub Desktop.
Erlang

Erlang

http://erlang.org/doc/installation_guide/INSTALL.html#id63548

$ sudo yum install ncurses-devel

$ git clone https://github.com/erlang/otp.git

$ cd otp
$ export RELEASE_VERSION=21.0.3
$ git archive OTP-${RELEASE_VERSION} --prefix=otp_src_${RELEASE_VERSION}/ --output=$HOME/work/make/otp_src_${RELEASE_VERSION}.tar.xz
$ cd $HOME/work/make/
$ tar -Jxf otp_src_${RELEASE_VERSION}.tar.xz
$ cd otp_src_${RELEASE_VERSION}

$ export LANG=C

$ export ERL_TOP=`pwd` \
    && ./otp_build autoconf \
    && ./configure \
    && make \
    && make release_tests

$ cd release/tests/test_server/
$ $ERL_TOP/bin/erl -s ts install -s ts smoke_test batch -s init stop
$ cd $ERL_TOP

$ sudo make install
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment