fayddelight

fayddelight

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!

Showing Posts 1 to 10

kartheek

kartheek

Can you check the output of the following commands:

asdf which elixir
asdf which iex
fayddelight

fayddelight OP

~/.asdf/installs/elixir/1.11.2-otp-23/bin/elixir
~/.asdf/installs/elixir/1.11.2-otp-23/bin/iex

kartheek

kartheek

Did you try asdf reshim ?

fayddelight

fayddelight OP

Yes of course.

kartheek

kartheek

Using iex with full path works but using only iex command 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

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

baka

I have

plugins=(
...
asdf
...

in .zshrc
and then

asdf reshim elixir
sergio

sergio

Try mix local.hex what that do for you

I 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

fayddelight OP

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

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

Where Next? Top

Trending in Questions Top

RSP87
I’m working on a project that simulates the bumbl example in the programming phoenix book. It acts almost like an email client. We have a...
New
nseaSeb
Hello, I know there is an approach for handling lists that allows for optimized traversal, but I can’t recall the specific method (somet...
New
RemyXRenard
I’m seeing that a list inside a Kino.DataTable will be interpreted as a charlist, even if the Kino.configure() is set to charlists: :as_l...
New
velrest
So my question is quite simple and i have found no conclusive answer on forum, google or AI. Should we use :erlang.float for Integer to ...
New
samoloth
Hi, I’ve just set up an application with ash_authentication. There is only magic link strategy for now, so there is no confirmation add o...
New
FlyingNoodle
If a change or preparation module uses Ash.Changeset.get_argument/2 or Ash.Query.get_argument/2 (or any of the other get_argument functio...
New
brecabral
Documentation While reading the Scoped Routes section, I noticed that the documentation currently refers to a problem without explainin...
New

Other Trending Topics Top

mudasobwa
I am happy to introduce the very α version of the new programming language compiled to BEAM. Welcome Cure. It has literally three kille...
New
marciok
Hi there! We created Gust: A task orchestrator inspired by Airflow. For those who have never heard about Aiflow, it’s a Python-based wor...
New
jimsynz
Beam Bots (or just BB for short) is a framework for building fault-tolerant robotics applications in Elixir using familiar OTP patterns. ...
New
Dmk
Xamal is a deployment tool for Elixir apps that deploys native releases to bare metal servers over SSH. It’s a port of GitHub - basecamp/...
New
netoum
Corex is an accessible, unstyled UI component library for Phoenix that integrates Zag.js state machines using Vanilla JavaScript and Live...
New
webofbits
Aludel - LLM Evaluation Workbench Aludel is an embeddable Phoenix LiveView dashboard for evaluating and comparing LLM prompts across mult...
New

We're in Beta

About us Mission Statement

Options

Thread Display Mode




Thread Preview

Skip Thread Previews