mix do deps.get, compile
Resolving Hex dependencies...
Dependency resolution completed:
Unchanged:
castore 0.1.17
connection 1.1.0
cowboy 2.9.0
cowboy_telemetry 0.4.0
cowlib 2.11.0
db_connection 2.4.2
decimal 2.0.0
ecto 3.8.4
ecto_sql 3.8.3
esbuild 0.5.0
gettext 0.20.0
jason 1.3.0
mime 2.0.2
phoenix 1.6.11
phoenix_ecto 4.4.0
phoenix_html 3.2.0
phoenix_live_dashboard 0.6.5
phoenix_live_view 0.17.11
phoenix_pubsub 2.1.1
phoenix_view 1.1.2
plug 1.13.6
plug_cowboy 2.5.2
plug_crypto 1.2.2
postgrex 0.16.4
ranch 1.8.0
swoosh 1.7.3
telemetry 1.1.0
telemetry_metrics 0.6.1
telemetry_poller 1.0.0
All dependencies are up to date
==> connection
Compiling 1 file (.ex)
Generated connection app
==> decimal
Compiling 4 files (.ex)
Generated decimal app
==> mime
Compiling 1 file (.ex)
Generated mime app
=ERROR REPORT==== 9-Aug-2022::02:32:45.712859 ===
beam/beam_load.c(148): Error loading module rebar3:
please re-compile this module with an Erlang/OTP 25 compiler
escript: exception error: undefined function rebar3:main/1
in function escript:run/2 (escript.erl, line 750)
in call from escript:start/1 (escript.erl, line 277)
in call from init:start_em/1
in call from init:do_boot/3
==> conduit
** (Mix) Could not compile dependency :telemetry, "/home/tjay/.mix/rebar3 bare compile --paths /home/tjay/elixirproj/conduit/_build/dev/lib/*/ebin" command failed. Errors may have been logged above. You can recompile this dependency with "mix deps.compile telemetry", update it with "mix deps.update telemetry" or clean it with "mix deps.clean telemetry"
Undefined function rebar3 using elxir 1.13.4 and otp 25
1.1k Views Asked by tee At
2
There are 2 best solutions below
0
On
The issue is your elixir is compiled with otp/24 (refer to this post). You have to remove it and install the precompile version or install using the following source.
$ git clone https://github.com/elixir-lang/elixir.git
$ cd elixir
$ make clean test
$ export PATH="$PATH:/path/to/elixir/bin"
I ran into this and fixed it by running "mix local.rebar".