Spotlight: Ellie Fairholm and Josep (Pep) Giralt D'Lacoste (Authors) Interview and AMA!

After asdf install I get some binaries in the ~/.asdf (like aws) but i had already hombrew installed erlang and elixir and the homebrew ones were being picked up.

Maybe it’s because I had:

plugins=(git asdf)

at the top of my .zshrc? That line was already there and i added the asdf plugin. Maybe it needs to be at the end since it sources the .asdf.sh … as I did again at the end of .zshrc in order to pick out the elixir and erl binaries in .asdf home:

# Add asdf to PATH once again at the end to make sure asdf versions are picked instead of homebrew ones
. $HOME/.asdf/asdf.sh

@justincalleja for security reasons, openss1@1.1 is no longer recommended at this point. You can and should install openssl@3 instead via Homebrew i.e brew install openssl3 and add the following to your zshrc or bash file:

export PATH="$(brew --prefix openssl@3)/bin:$PATH"

This ensures that openssl3 is used for all apps/programs that require openssl.

The Homebrew versions will always be picked up by default unless you do something about it, which is why we used ASDF.

I used to have Homebrew versions of Elixir and Erlang when I started out but deleted them after I got used to asdf. They really have serve no purpose unless used as dependencies for something like RabbitMQ which for now you don’t need.

My suggestion would be to uninstall those versions, then install Elixir and Erlang versions using ASDF like you have. Then you can set global and local versions of both using the following examples. The ASDF versions will then be picked up automatically without any hitches.

Use this to set the global version of Elixir and Erlang that will be used automatically when you type iex or erl.

  • asdf global elixir 1.17.3-otp-27
  • asdf global erlang 27.1.2

Per project basis if you only need to use specific version of elixir for that specific project. Run it in the project directory.

  • asdf local elixir 1.17.3-otp-27
  • asdf local erlang 27.1.2

Let me know it this helps. Cheers!

1 Like

Thank you for the reply. I’ve set the ssl3 path override. It did cross my mind to uninstall the homebrew versions. Keeping them around as a backup.

Mostly just posting comments in case someone else has difficulty getting started e.g. the running out of file descriptor issue etc…

Thanks for the feedback

1 Like

Glad that worked out well for you. Have a good one, and enjoy Elixir!