Closed dylan-chong closed 3 years ago
This works for me, can you elaborate on your setup or try to reinstall to see if it still happens?
> asdf install elixir 1.11.3-otp-23
==> Checking whether specified Elixir release exists...
==> Downloading 1.11.3-otp-23 to /var/folders/20/lt8md6v554911g2fn4frk69h0000gn/T//elixir-precompiled-1.11.3-otp-23.zip
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 5725k 100 5725k 0 0 1935k 0 0:00:02 0:00:02 --:--:-- 1934k
==> Copying release into place
> asdf local elixir 1.11.3-otp-23
> iex
Erlang/OTP 23 [erts-11.0.3] [source] [64-bit] [smp:12:12] [ds:12:12:10] [async-threads:1] [hipe]
Interactive Elixir (1.11.3) - press Ctrl+C to exit (type h() ENTER for help)
iex(1)>
BREAK: (a)bort (A)bort with dump (c)ontinue (p)roc info (i)nfo
(l)oaded (v)ersion (k)ill (D)b-tables (d)istribution
^C%
> mix
** (Mix) "mix" with no arguments must be executed in a directory with a mix.exs file
Usage: mix [task]
Examples:
mix - Invokes the default task (mix run) in a project
mix new PATH - Creates a new Elixir project at the given path
mix help - Lists all available tasks
mix help TASK - Prints documentation for a given task
The --help and --version options can be given instead of a task for usage and versioning information.
Are you using mac os?
> asdf info elixir
OS:
Darwin Dylans-Work-MacBook-Pro.local 20.2.0 Darwin Kernel Version 20.2.0: Wed Dec 2 20:39:59 PST 2020; root:xnu-7195.60.75~1/RELEASE_X86_64 x86_64
SHELL:
GNU bash, version 3.2.57(1)-release (x86_64-apple-darwin20)
Copyright (C) 2007 Free Software Foundation, Inc.
ASDF VERSION:
v0.8.0
ASDF ENVIRONMENT VARIABLES:
ASDF_DIR=/usr/local/opt/asdf
ASDF INSTALLED PLUGINS:
elixir https://github.com/asdf-vm/asdf-elixir.git
erlang https://github.com/asdf-vm/asdf-erlang.git
nodejs https://github.com/asdf-vm/asdf-nodejs.git
yarn https://github.com/twuni/asdf-yarn.git
ASDF is installed through homebrew
Reinstall did not work unfortunately.
Same issue also seems to happen with this:
> elixir -v
{"init terminating in do_boot",{undef,[{elixir,start_cli,[],[]},{init,start_em,1,[]},{init,do_boot,3,[]}]}}
init terminating in do_boot ({undef,[{elixir,start_cli,[],[]},{init,start_em,1,[]},{init,do_boot,3,[]}]})
Crash dump is being written to: erl_crash.dump...done
Aha, from the dump file, it looks like it's using OTP 22
System version: Erlang/OTP 22 [erts-10.7.2.1] [source] [64-bit] [smp:8:8] [ds:8:8:10] [async-threads:1] [hipe]
AHA! I have erlang installed separately, of version 22 of course. Solution was to install the version of erlang (23)
Thanks for the quick reply by the way!
[]}
[]}
[],
[]}
I had a similar error after installing erlang and elixir through asdf, but my .bashrc still contained the line:
. /srv/kerl/23.0.2/activate
Commenting that out solved the issue. So it's basically a very unhelpful error about conflicting erlang versions.
This does not happen on
1.11.3
and1.11.3-otp-22
:Am using mac os 11.1