Skip to content

Instantly share code, notes, and snippets.

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 Leask/2d77377e520669ef113a4316b3385a97 to your computer and use it in GitHub Desktop.
Save Leask/2d77377e520669ef113a4316b3385a97 to your computer and use it in GitHub Desktop.
Running elixir 1.12.1 on amazon linux 2
#!/bin/bash
# run this script with root privileges
# pre-install
yum install ncurses-devel openssl-devel gcc-c++ automake cmake fop unixODBC-devel libssh2-devel -y
yum groupinstall "Development Tools" -y
# More Dependencies Needed: *openjdk-devel, wxGTK-devel
# https://github.com/asdf-vm/asdf-erlang/issues/83
# https://gist.github.com/tharun-allu/dd7d123a1ee264e03d3656dd0727f362
# install erlang
cd /tmp
wget "http://erlang.org/download/otp_src_24.2.tar.gz" -O otp24.tar.gz
tar xfz otp24.tar.gz
cd otp_src_24.2/
./configure
make && make install
# install elixir
cd /tmp
wget "https://github.com/elixir-lang/elixir/archive/v1.13.tar.gz"
tar xfz v1.13.tar.gz
cd elixir-1.13/
export PATH="${PATH}:/usr/local/bin"
make && make install
# install deps
mix local.hex --force
mix local.rebar --force
#!/bin/bash
# pre-install
sudo apt-get install wget make
# install erlang
sudo apt-get install erlang elixir
mix local.hex --force
mix local.rebar --force
# install elixir
cd /tmp
wget "https://github.com/elixir-lang/elixir/archive/refs/tags/v1.13.4.tar.gz"
tar xfz v1.13.4.tar.gz
cd elixir-1.13.4/
export PATH="${PATH}:/usr/local/bin"
make && sudo make install
# install deps
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