I already provided a link to a prebuilt version of elixir, which should work for you if you indeed have erlang 23.1 installed.
If it does not work for you, please run which --all erl to find all installed versions of erlang, then run each of the entries with -eval 'erlang:display(erlang:system_info(otp_release)), halt().' -noshell as arguments.
The following script would do the equivalent for you:
for erl in $(which --all erl); do
printf "using erlang from %s" "${erl}"
$erl -eval 'erlang:display(erlang:system_info(otp_release)), halt().' -noshell
done


















