-
Notifications
You must be signed in to change notification settings - Fork 7
Install elixir environment for windows
Austin Hammer edited this page Apr 5, 2023
·
1 revision
Make sure virtualization is enabled via the system bios beforehand
wsl --install
This will install ubuntu by default.
sudo apt-get update
sudo apt install autoconf bison build-essential libssl-dev libyaml-dev \
libreadline-dev zlib1g-dev libncurses-dev libffi-dev \
libgdbm-dev curl git unzip
git clone https://github.com/asdf-vm/asdf.git ~/.asdf --branch v0.11.3
Add to the end of .bashrc
, file is located at the root directory
. "$HOME/.asdf/asdf.sh"
. "$HOME/.asdf/completions/asdf.bash"
Restart your terminal or source .bashrc
asdf plugin add erlang
asdf plugin add elixir
In the root of the project environment, there is a file called .tool_versions
.
cat .tool_versions
to get the current versions of erlang and elixir.
asdf install erlang $ERLANG_VERSION
asdf install elixir $ELIXIR_VERSION