Last active
May 4, 2019 22:20
-
-
Save moxley/45b1ff41dee2444c27e801c9fb0e9c6a to your computer and use it in GitHub Desktop.
Install Elixir 1.8.1/Erlang 21.3 onto Ubuntu 16.04
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh -e | |
# Run this script as root | |
apt-get update && DEBIAN_FRONTEND=noninteractive apt-get install -y locales | |
sed -i -e 's/# en_US.UTF-8 UTF-8/en_US.UTF-8 UTF-8/' /etc/locale.gen && \ | |
dpkg-reconfigure --frontend=noninteractive locales && \ | |
update-locale LANG=en_US.UTF-8 | |
ENV LANG en_US.UTF-8 | |
apt-get -y install curl make git | |
# Install openssl-devel. Required by Erlang crypto. | |
apt-get -y install openssl | |
# Install Erlang | |
curl -O -L https://packages.erlang-solutions.com/erlang-solutions_1.0_all.deb | |
dpkg -i erlang-solutions_1.0_all.deb | |
apt-get update | |
apt-get -y install esl-erlang | |
# Install Elixir | |
curl -L https://github.com/elixir-lang/elixir/archive/v1.8.1.tar.gz > elixir-1.8.1.tar.gz | |
tar -zxf elixir-1.8.1.tar.gz | |
cd elixir-1.8.1 && make && make install | |
mix local.hex --force | |
mix local.rebar --force |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment