简体   繁体   中英

Install Erlang and Elixir on MacOS M1 - Command not found

i'm trying to install specific version of Erlang and Elixir on macos M1

I don't use brew because i can't specify version (brew installs only last version apparently)

I used ASDF with this.tool-versions files:

elixir 1.12.3
erlang 24.2
nodejs 16.5.0

but after installation, I met some errors command are not found when I type

elixir --version
iex
..
asdf plugin add erlang
asdf plugin add elixir
asdf plugin add nodejs

asdf install

I don't understand how to precise the path Should I precise something in $HOME/.zshrc?

I'm including this as an answer for visibility (see Aleksei's comment):

After installing asdf (as with many CLI software), you must restart your shell (eg by opening a new Terminal window) or you must (re)source your profile (eg source ~/.zshrc ). This causes asdf to run its boot-strapping script -- eg . /opt/homebrew/opt/asdf/libexec/asdf.sh . /opt/homebrew/opt/asdf/libexec/asdf.sh , which establishes paths etc.

When you install asdf (as with lots of CLI software), pay close attention to the messages displayed in the terminal: usually there are helpful messages there that remind you to do things like this.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM