Skip to content

Instantly share code, notes, and snippets.

@alvinlai
Forked from chaos-ad/install.sh
Last active December 31, 2017 07:43
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save alvinlai/1457dac3dce51a432a0b877bbe2d66f8 to your computer and use it in GitHub Desktop.
Save alvinlai/1457dac3dce51a432a0b877bbe2d66f8 to your computer and use it in GitHub Desktop.
Installing erlang in ubuntu
#!/bin/bash
# installing erlang on ubuntu's
VERSION="18.2.1"
sudo apt-get install build-essential libncurses5-dev openssl libssl-dev
sudo mkdir -p /opt/erlang/
cd /usr/local/bin/
sudo curl -O https://raw.githubusercontent.com/kerl/kerl/master/kerl && chmod a+x kerl
kerl update releases
kerl build ${VERSION} ${VERSION}
sudo kerl install ${VERSION} /opt/erlang/${VERSION}
sudo ln -s /opt/erlang/${VERSION} /opt/erlang/current
cd /usr/local/bin
sudo find /opt/erlang/current/bin -exec ln -s '{}' \;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment