Skip to content

Instantly share code, notes, and snippets.

@trajakovic
Last active March 10, 2018 18:33
Show Gist options
  • Save trajakovic/eb115224f569fca41dec4925b84d1f1f to your computer and use it in GitHub Desktop.
Save trajakovic/eb115224f569fca41dec4925b84d1f1f to your computer and use it in GitHub Desktop.
Compile and install Erlang 20.2 from source on Ubuntu 16.04 (Xenial Xerus or Linux Mint Sylvia 18.3). Compile and install Elixir 1.6.3 on Ubuntu 16.04
# requirement: erlang, git
ELIXIR_VERSION="1.6.3"
sudo apt-get update && sudo apt-get install -y git && \
rm -rf /tmp/code/elixir/${ELIXIR_VERSION} && mkdir -p /tmp/code/elixir/${ELIXIR_VERSION} && cd /tmp/code/elixir/${ELIXIR_VERSION} && \
git clone -b "v${ELIXIR_VERSION}" --single-branch --depth 1 https://github.com/elixir-lang/elixir.git . && \
make clean test && \
sudo make install && \
cd && rm -rf /tmp/code/elixir && \
echo "Check your elixir version by typing 'iex --version'"
mkdir /tmp/code/erlang -p && cd /tmp/code/erlang && rm -rf /tmp/code/erlang/otp_src_20.2 && \
wget -O otp_src_20.2.tar.gz http://erlang.org/download/otp_src_20.2.tar.gz && tar xf ./otp_src_20.2.tar.gz && cd ./otp_src_20.2 && \
sudo apt-get update && sudo apt-get --fix-missing -y install build-essential m4 libncurses5-dev libssh-dev unixodbc-dev libgmp3-dev libwxgtk3.0-dev libglu1-mesa-dev fop xsltproc default-jdk libxml2-utils && \
./configure && make -j4 && \
sudo make install && \
cd && rm -rf /tmp/code/erlang && \
echo "Type 'erl' and see version of erlang"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment