asdf-elixir: Running mix gives an exec: erl: not found error
Did the following steps successfully:
$ asdf install erlang 21.2.3
$ asdf install elixir 1.8.0
$ asdf global erlang 21.2.3
$ asdf global elixir 1.8.0
but getting an error when running mix, is there a step I’m missing?

About this issue
- Original URL
- State: closed
- Created 5 years ago
- Reactions: 5
- Comments: 19 (5 by maintainers)
I’ve been working around this by pinning an earlier version of asdf
Then doing plugin-adds and installs as usual.
Same here:
On MacOS Catalina 10.15.7
I am getting this same error when I try to run any mix command. I am using ubuntu 20.10
It used to work perfectly, but than I had to remove and reinstall the erlang plugin and this problem started to happen
Not working on CentOS 9 Stream in 2024.
output
Invalid resolution:
. "${ASDF_DIR}/asdf.sh"or add shims toPATH. Neither of these are suitable resolutions because the system requires a specific version ofpython, or it breaks everything and defeats the purpose of isolated environments.Conclusion:
asdf execisn’t environmentally clean and idempotent.Same issue here on Mac Monterrey 😕
still failed after
asdf reshim. Using asdf version 0.8.0.This should not be an issue with the latest version of asdf (version
0.8.0). If the steps listed in this issue don’t work trying runningasdf reshim.