Skip to content

Instantly share code, notes, and snippets.

@LordOkami
Last active June 24, 2020 09:07
Show Gist options
  • Save LordOkami/eaf875929709b4ce603fa19608ab4d95 to your computer and use it in GitHub Desktop.
Save LordOkami/eaf875929709b4ce603fa19608ab4d95 to your computer and use it in GitHub Desktop.
Install Elixir
#!/bin/bash
sudo apt install build-essential automake autoconf git squashfs-tools ssh-askpass pkg-config curl
sudo apt-get install libssl-dev libncurses5-dev
git clone https://github.com/asdf-vm/asdf.git ~/.asdf --branch v0.7.1
# The following steps are for bash. If you’re using something else, do the
# equivalent for your shell.
echo -e '\n. $HOME/.asdf/asdf.sh' >> ~/.bashrc
echo -e '\n. $HOME/.asdf/completions/asdf.bash' >> ~/.bashrc # optional
source ~/.bashrc
# for zsh based systems run the following
# echo -e '\n. $HOME/.asdf/asdf.sh' >> ~/.zshrc
# echo -e '\n. $HOME/.asdf/completions/asdf.bash' >> ~/.zshrc
# source ~/.zshrc
asdf plugin-add erlang
asdf plugin-add elixir
# Note #1:
# If on Debian or Ubuntu, you'll want to install wx before running the next line:
# sudo apt install libwxgtk3.0-dev
# for arch based systems run the next line:
# yay -S wxgtk2 fop jdk-openjdk unzip
# Note #2:
# It's possible to use different Erlang and Elixir versions with Nerves. The
# latest official Nerves systems are compatible with the versions below. In
# general, differences in patch releases are harmless. Nerves detects
# configurations that might not work at compile time.
asdf install erlang 22.3.4.1
asdf install elixir 1.10.3-otp-22
asdf global erlang 22.3.4.1
asdf global elixir 1.10.3-otp-22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment