Created
November 15, 2016 12:56
-
-
Save gtebbutt/f6ecc971da7c2cf6b0736373cfdbcdb7 to your computer and use it in GitHub Desktop.
AWS User Data shell script to set up Erlang & Elixir on Amazon Linux
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/bash | |
yum update -y | |
yum install gcc ncurses-devel perl openssl-devel openssl git -y | |
mkdir /erlang | |
cd /erlang | |
export HOME=/erlang | |
wget https://raw.githubusercontent.com/kerl/kerl/master/kerl | |
chmod a+x kerl | |
./kerl build 19.1 current | |
./kerl install current /erlang/install | |
. /erlang/install/activate | |
wget https://github.com/elixir-lang/elixir/archive/v1.3.4.zip | |
unzip v1.3.4.zip | |
cd elixir-1.3.4/ | |
make | |
echo ". /erlang/install/activate" >> /home/ec2-user/.bashrc | |
echo "PATH=\$PATH:/erlang/elixir-1.3.4/bin" >> /home/ec2-user/.bashrc |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment