Skip to content

Instantly share code, notes, and snippets.

@soruma
Last active February 29, 2020 08:19
Show Gist options
  • Save soruma/2b305e6aa6877802c02a1fdea7a77bea to your computer and use it in GitHub Desktop.
Save soruma/2b305e6aa6877802c02a1fdea7a77bea to your computer and use it in GitHub Desktop.
OTP_VERSION=22.2
ELIXIR_VERSION=v1.10.2
# Install required packages
sudo apt-get install git m4 libncurses5-dev libssl-dev
# Install OTP
wget http://erlang.org/download/otp_src_${OTP_VERSION}.tar.gz -O otp_src.tar.gz
mkdir otp_src; cd $_
tar xzvf ../otp_src.tar.gz --strip=1 -C .
./configure --enable-hipe
make
sudo make install
cd ../
# Install elixir
git clone https://github.com/elixir-lang/elixir.git
cd elixir/
git checkout $ELIXIR_VERSION
make clean test
sudo make install
cd ../
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment