I installed elixir 1.14.5-otp-25 and erlang 25.3.2.5 on ubuntu 22 on Docker in macos
$ apt-get install -y lsb-release wget curl gnupg2 vim sudo unzip build-essential openssl ca-certificates cargo netcat
$ apt-get install -y libtool inotify-tools libsecp256k1-dev automake autoconf libgmp-dev
$ apt-get install -y language-pack-en git
$ apt-get install -y libncurses5-dev libncursesw5-dev
RUN curl -fsSL https://deb.nodesource.com/setup_lts.x | sudo -E bash - &&
apt-get install -y nodejs
$ git clone GitHub - erlang/otp: Erlang/OTP && cd otp && git checkout OTP-25.3.2.5 && ./configure && make && make install
$ wget https://github.com/elixir-lang/elixir/releases/download/v1.14.5/elixir-otp-25.zip && unzip -d /usr/local/elixir/ elixir-otp-25.zip
$ elixir -v
Erlang/OTP 25 [erts-13.2.2.2] [source] [64-bit] [smp:4:4] [ds:4:4:10] [async-threads:1] [jit]
Elixir 1.14.5 (compiled with Erlang/OTP 25)
$ mix local.hex --force
warning: Jason.decode!/1 is undefined (module Jason is not available or is yet to be defined)
config/config_helper.exs:127: ConfigHelper.parse_json_env_var/2
01:41:18.926 [error] Task #PID<0.116.0> started from #PID<0.96.0> terminating
** (MatchError) no match of right hand side value: {:error, {:ssl, {‘no such file or directory’, ‘ssl.app’}}}
(mix 1.14.5) lib/mix/utils.ex:647: Mix.Utils.read_httpc/1
(mix 1.14.5) lib/mix/utils.ex:579: anonymous fn/2 in Mix.Utils.read_path/2
(elixir 1.14.5) lib/task/supervised.ex:89: Task.Supervised.invoke_mfa/2
(elixir 1.14.5) lib/task/supervised.ex:34: Task.Supervised.reply/4
(stdlib 4.3.1.2) proc_lib.erl:240: :proc_lib.init_p_do_apply/3
Function: #Function<5.41389915/0 in Mix.Utils.read_path/2>
Args: []
I can not install hex
, what do I do?
thanks.