I have a problem with my asdf on mac M1. I install asdf with brew commnad brew install asdf and its current version is 0.18.0 (revision unknown). I been able to install OTP 26 which using asdf install erlang 26.2.5.6. But my asdf does not have global option to activate the erlang version. I also used asdf with my ubuntu machine, it has the global option so I can easily switch the version.
To activate the erlang in my mac I have to put this command in my bash #. /Users/m1/.asdf/installs/erlang/26.2.5.6/activate which is kerl command
Do you know how to activate the erlang with asdf on mac M chip properly?
# Global is deprecated, use .tool-versions to specify version per project.
# To set for a specific directory:
asdf set ruby 2.7.2 # Set replaces asdf local
# Can also use this to set for your home directory:
asdf set ruby 3.3.0 --home
Mise is a much faster, drop-in replacement for asdf that supports Erlang out of the box (it also supports asdf plugins). I switched to it some years ago and never looked back, highly recommend it.
Mise is a much faster, drop-in replacement for asdf that supports Erlang out of the box (it also supports asdf plugins). I switched to it some years ago and never looked back, highly recommend it.
I can recommend it as well. I’ve switched to mise recently and it seems to work well for my setup.
Hi @htdat148, just now seeing this. The asdf global command was removed in asdf version 0.16.0 and replaced with asdf set. The word “global” was misleading as it didn’t actually set the version everywhere. It is really just set a sort of default when no other versions were set. The API was changed to reflect this. Instead of asdf global, use asdf set -u (-u/--home indicating it’ll be set for your home directory, effectively making it a default). It’s the exact same behavior as before.
After changes made to asdf in version 0.16.0, Mise and asdf perform about the same. Mise offers more features and asdf is simpler. Both are solid choices.