Last active
September 18, 2018 16:23
-
-
Save StefanYohansson/0d27f5b13c71f3e77245dcee137beccc to your computer and use it in GitHub Desktop.
install erlang & elixir
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 | |
| unameOut="$(uname -s)" | |
| case "${unameOut}" in | |
| Linux*) sudo apt-get install -y git curl automake autoconf libreadline-dev libncurses-dev \ | |
| libssl-dev libyaml-dev libxslt-dev libffi-dev libtool unixodbc-dev \ | |
| libwxgtk3.0-dev libgl1-mesa-dev libglu1-mesa-dev libssh-dev xsltproc fop \ | |
| libxml2-utils | |
| ;; | |
| Darwin*) brew install coreutils automake autoconf openssl libyaml readline libxslt libtool unixodbc | |
| ;; | |
| esac | |
| git clone https://github.com/asdf-vm/asdf.git ~/.asdf --branch v0.4.3 | |
| echo '\n. $HOME/.asdf/asdf.sh' >> ~/.profile | |
| echo '\n. $HOME/.asdf/completions/asdf.bash' >> ~/.profile | |
| source ~/.profile | |
| asdf plugin-add erlang | |
| asdf install erlang 20.3.4 | |
| asdf global erlang 20.3.4 | |
| asdf plugin-add elixir https://github.com/asdf-vm/asdf-elixir.git | |
| asdf install elixir 1.6.5 | |
| asdf global elixir 1.6.5 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment