1

I am trying to set elixir up as a back-end for React, and I have done a bunch of stuff to get it running. I cannot seem to make it work.

"10:09:43.125 [error] beam/beam_load.c(206): Error loading module 'Elixir.Hex':
  This BEAM file was compiled for an old version of the runtime system.
  To fix this, please re-compile this module with Erlang/OTP 24 or later."

I have tried sudo apt-get install erlang and mix deps.compile or mix compile or mix clean

3
  • 1
    Try elixirforum.com/t/… Commented Jun 5, 2024 at 9:32
  • 1
    Most elixir devs I know use asdf or mise for installing elixir, erlang and other stuff. I recommend starting with asdf. google.com/url?q=https://github.com/asdf-vm/… When it is installed, you can asdf plugin add erlang and asdf install erlang 26, etc. On an existing elixir project, you may see a .tool-versions file. This is for asdf to use. asdf intall will find the .tool-versions file. The file is created when you run asdf local... Commented Jun 5, 2024 at 10:45
  • Have you tried to run mix local.hex Commented Jun 5, 2024 at 13:33

1 Answer 1

0

You should use asdf to install elixir and erlang. The main props I can see of using asdf is that you can select any version of the language

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.