Could not find asdf `global` command on Mac

Hi all,

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?

1 Like

I remember running into that problem as well… just checked my notes:

# 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.

It still supports global.

3 Likes

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.

2 Likes

thanks guys, I will try it

1 Like