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!
Trending in Questions
I’m in search of an Elixir library that offers PDF generation capabilities similar to Ruby’s Prawn. While there have been discussions abo...
New
I’m looking to build a personal workflow to quickly deploy web applications written in elixir/phoenix, for local consumption (ie not on t...
New
Using Phoenix.LiveView.TagEngine as an EEx.Engine is deprecated!
To compile HEEx, use Phoenix.LiveView.TagEngine.compile/2 instead.
Sta...
New
Before I dive in myself, did anyone successfully sprinkle Hologram into their existing LiveView app?
Looking for hints regarding:
Addi...
New
Hi all, I wanted to ask how the community is dealing with post-release steps.
Today we have Ecto migrations, which make sure that the db...
New
I am using Oban and occasionally, shortly after a deployment, a handful of jobs can fail because of dependency on other parts of the syst...
New
Hello,
I have an Elixir backend that implements a custom protocol over TCP. I want to load test the backend and assess the performance o...
New
Other Trending Topics
Hey, I’m Jesse and I’m the main contributor behind Dexter, a full-featured, lightning-fast Elixir LSP optimized for large codebases. It s...
New
Beam Bots (or just BB for short) is a framework for building fault-tolerant robotics applications in Elixir using familiar OTP patterns. ...
New
Hello everyone. After busy few months I am happy to announce v0.1.0 of Emerge & Solve.
They are GUI (Emerge) and State management (S...
New
Emily is an Elixir library that runs Nx computations on Apple’s MLX. Install it as the default Nx backend and Nx, defn, Axon, Nx.Serving,...
New
I just stumbled on a newly redesigned elixir-lang.org. :tada: It looks like @Software_Mansion did the work, and I think it is generally a...
New
@hugobarauna and I (Alex Koutmos) have been hard at work on writing a book on Nerves that takes you from simply blinking LEDs to building...
New
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
- #elixirconf-us
- #websockets
- #supervisor
- #advent-of-code
- #distillery
- #processes
- #api
- #forms
- #metaprogramming
- #hex
- #performance










First 10 of 17 Posts
kartheek
Can you check the output of the following commands:
fayddelight
~/.asdf/installs/elixir/1.11.2-otp-23/bin/elixir
~/.asdf/installs/elixir/1.11.2-otp-23/bin/iex
kartheek
Did you try
asdf reshim?fayddelight
Yes of course.
kartheek
Using iex with full path works but using only
iexcommand does not work ?~/.asdf/shims/folder is included in path.Commands like iex, elixir, erl are resolved to files in the shims folder.
You can check $PATH variable if
~/.asdf/shims/folder is included.Did you install asdf using brew ?
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
in
.zshrcand then
sergio
Try
mix local.hexwhat that do for youI would also try a dumb terminal with no zsh, see if that functions normally so you can narrow the surface area of this bug.
fayddelight
So if I type in these commands:
(base) ➜ ~ asdf which elixir
HOME/.asdf/installs/elixir/1.11.2/bin/elixir
(base) ➜ ~ HOME/.asdf/installs/elixir/1.11.2/bin/elixir --version
HOME/.asdf/installs/elixir/1.11.2/bin/elixir: line 230: exec: erl: not found
I get the error above.
So I tried fixing it with setting export erl=HOME/.asdf/installs/erlang/23.3.4/bin/erl
in ~/.zshenv
However
(base) ➜ ~ echo $erl
shows me
HOME/.asdf/installs/erlang/23.3.4/bin/erl
but just typing
(base) ➜ ~ erl
zsh: command not found: erl
Seems to me this is a zsh issue or I’m making a mistake?
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/shimsif it is not present.Can you try this:
And check
iex,erl,elixircommands