Last active
April 23, 2023 03:10
-
-
Save zongwu233/d72ba9cc7ee83c9c06446012d242b2ab to your computer and use it in GitHub Desktop.
debian install latest version 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
# DO NOT use apt-get install elixir | |
# it's v1.10 ,and elixir is now v1.14 | |
# using asdf | |
git clone https://github.com/asdf-vm/asdf.git ~/.asdf --branch v0.11.3 | |
echo '. $HOME/.asdf/asdf.sh' >> ~/.bashrc | |
echo '. $HOME/.asdf/completions/asdf.bash' >> ~/.bashrc | |
# will not take effect in non interactive shell environment | |
source ~/.bashrc | |
# we need this now | |
. $HOME/.asdf/asdf.sh | |
asdf plugin-add erlang | |
asdf plugin-add elixir | |
# add erlang dependencies | |
apt-get -y install build-essential | |
apt-get -y install autoconf | |
apt-get -y install m4 | |
apt-get -y install libncurses5-dev | |
apt-get -y install libgl1-mesa-dev libglu1-mesa-dev libpng3 | |
apt-get -y install libssh-dev | |
apt-get -y install unixodbc-dev | |
asdf install erlang 25.0 | |
asdf install elixir 1.14.3 | |
asdf global erlang 25.0 | |
asdf global elixir 1.14.3 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment