Skip to content

Instantly share code, notes, and snippets.

@StefanYohansson
Last active September 18, 2018 16:23
Show Gist options
  • Select an option

  • Save StefanYohansson/0d27f5b13c71f3e77245dcee137beccc to your computer and use it in GitHub Desktop.

Select an option

Save StefanYohansson/0d27f5b13c71f3e77245dcee137beccc to your computer and use it in GitHub Desktop.
install erlang & elixir
#!/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