fayddelight
Installing elixir via asdf shows zsh: command not found: iex
I tried installing
elixir 1.11.2
erlang 23.3.4
via asdf in my zsh shell. Enabled the versions locally and globally.
When I list them via ‘asdf list elixir’ or ‘asdf list erlang’ the correct versions are listed but not usable.
→ it keeps on showing: zsh: command not found: iex
I had the latest version of Elixir installed by homebrew before, which worked flawlessly.
Before the installation via asdf I uninstalled the brew installed version.
It keeps on not working after updating my OS(Monterey 12.2.1), updating brew, cleaning up brew, copying suggested lines to zsh, restarting my computer, etc.
Does anyone runs into the same issue or knows a workaround? Am I overlooking something?
Many thanks!
Marked As Solved
kartheek
Setting erl variable in environment is different from adding it to $PATH.
if you want to erl to path - it should be
export PATH=<path_to_exec_parent_folder>:$PATH
You should be adding ~/.asdf/shims if it is not present.
Can you try this:
export PATH=~/.asdf/shims:$PATH
And check iex, erl, elixir commands
Also Liked
fayddelight
That worked thank you!
AstonJ
Also not sure if it’s any help, but try following this guide - this has always worked for me on a new Mac or after a clean install.
baka
I have
plugins=(
...
asdf
...
in .zshrc
and then
asdf reshim elixir
Popular in Questions
Other popular topics
Categories:
Sub Categories:
Forums
Popular Tags
- #ecto
- #liveview
- #troubleshooting
- #learning-elixir
- #deployment
- #library
- #erlang
- #testing
- #genserver
- #mix
- #absinthe
- #remote-other
- #otp
- #plug
- #how-to-question
- #macros
- #postgres
- #channels
- #elixirconf
- #exunit
- #discussion
- #code-sync
- #javascript
- #podcasts
- #onsite
- #dialyzer
- #docker
- #authentication
- #umbrella
- #full-time-contract
- #podcasts-by-brainlid
- #ecto-query
- #elixir-ls
- #phoenix_html
- #iex
- #blog-post
- #graphql
- #genstage
- #ai
- #websockets
- #supervisor
- #advent-of-code
- #elixirconf-us
- #distillery
- #processes
- #forms
- #api
- #metaprogramming
- #security
- #performance









