Asdf: I have installed Elixir with homebrew and now I'm using the asdf manager what I need to do?

Created on 14 Dec 2017  路  4Comments  路  Source: asdf-vm/asdf

I have already installed elixir with homebrew, so now I decide to use the manager asdf.
So I already have the versions of Erlang 20:

erl -v
Erlang/OTP 20 [erts-9.1.5] [source] [64-bit] [smp:4:4] [ds:4:4:10] [async-threads:10] [hipe] [kernel-poll:false] [dtrace]

Eshell V9.1.5  (abort with ^G)

and elixir:

elixir -v
Erlang/OTP 20 [erts-9.1.5] [source] [64-bit] [smp:4:4] [ds:4:4:10] [async-threads:10] [hipe] [kernel-poll:false] [dtrace]

Elixir 1.5.2

So when I install the asdf I need to link for use this version or need to uninstall the elixir and Erlang with homebrew and just use with asdf?
If I don't this I will have problems?

asdf list-all erlang
17.0
17.1
17.3
17.4
17.5
18.0
18.1
18.2.1
18.3
19.0
19.1
19.2
19.3
20.0
20.1
20.2

asdf list-all elixir
1.1.0
1.1.1
1.2.0
1.2.1
1.2.2
1.2.3
1.2.4
1.2.5
1.2.6
1.3.0-rc.0
1.3.0-rc.1
1.3.0
1.3.1
1.3.2
1.3.3
1.3.4
1.4.0-rc.0
1.4.0-rc.1
1.4.0
1.4.1
1.4.2
1.4.3
1.4.4
1.4.5
1.5.0-rc.0
1.5.0-rc.1
1.5.0-rc.2
1.5.0
1.5.1
1.5.2

cat  $HOME/.tool-versions
erlang 20.0
elixir 1.5.0-otp-20

Most helpful comment

@romenigld you'll need to make sure the asdf shims directory is at the front of your search $PATH. If another directory containing your brew installed Elixir or Erlang appears first those versions will be used instead of the asdf versions. Commands like which erl are helpful in determining whether or not you are using the asdf installed versions.

All 4 comments

Yeah if you end up sticking with asdf I would suggest removing / uninstalling Erlang / Elixir that is installed via mac homebrew. I hope this helps.

thank you @ipatch!

@romenigld you'll need to make sure the asdf shims directory is at the front of your search $PATH. If another directory containing your brew installed Elixir or Erlang appears first those versions will be used instead of the asdf versions. Commands like which erl are helpful in determining whether or not you are using the asdf installed versions.

I uninstall with:

brew uninstall elixir
brew uninstall erlang

 which erl
/Users/romenigld/.asdf/shims/erl
 which elixir
/Users/romenigld/.asdf/shims/elixir

The installation now is with asdf as well shows the path, thank's for reply @Stratus3D!!!!

Was this page helpful?
0 / 5 - 0 ratings