Forked from techgaun/erlang-elixir-on-amazon-linux.md
Last active
June 1, 2022 15:42
-
-
Save Leask/2d77377e520669ef113a4316b3385a97 to your computer and use it in GitHub Desktop.
Running elixir 1.12.1 on amazon linux 2
This file contains hidden or 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 | |
# 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 |
This file contains hidden or 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 | |
# 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