System.get_env/2 is undefined or private

I am trying to install Blackscout on an Azure VM.

  1. I created a fresh VM, logged in, followed the steps mentioned at Manual Deployment - BlockScout
  2. At step 7, when I run mix do deps.get, local.rebar --force, deps.compile, compile I get the following
$ mix do deps.get, local.rebar --force, deps.compile, compile
** (Mix.Config.LoadError) could not load config apps/block_scout_web/config/config.exs
    ** (UndefinedFunctionError) function System.get_env/2 is undefined or private. Did you mean one of:

      * get_env/0
      * get_env/1

    (elixir) System.get_env("SHOW_ADDRESS_MARKETCAP_PERCENTAGE", "true")
    (stdlib) erl_eval.erl:670: :erl_eval.do_apply/6
    (stdlib) erl_eval.erl:469: :erl_eval.expr/5
    (stdlib) erl_eval.erl:269: :erl_eval.expr/5
    (stdlib) erl_eval.erl:878: :erl_eval.expr_list/6
    (stdlib) erl_eval.erl:236: :erl_eval.expr/5
    (stdlib) erl_eval.erl:228: :erl_eval.expr/5
    (stdlib) erl_eval.erl:229: :erl_eval.expr/5

My erlang version is 20

erl -eval 'erlang:display(erlang:system_info(otp_release)), halt().'  -noshell
"20"
2 Likes