processone / p1_utils

Erlang Utility Modules from ProcessOne
http://www.process-one.net/
Apache License 2.0
19 stars 26 forks source link

p1_utils compile error: #16

Closed lifan0913 closed 2 years ago

lifan0913 commented 2 years ago

Hi, when I try to compile membrane framework, it depends on p1_utils, bu the p1_utils cannot compiled with following error message:

===> Fetching pc v1.14.0
===> Version cached at /home/lifan/.cache/rebar3/hex/hexpm/packages/pc-1.14.0.tar is up to date, reusing it
escript: exception error: undefined function erlang:get_stacktrace/0
  in function  rebar3:main/1 (/tmp/cirrus-ci-build/src/rebar3.erl, line 72)
  in call from 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 
** (Mix) Could not compile dependency :p1_utils,
   "/home/lifan/.mix/rebar3 bare compile
    --paths /home/lifan/workspace/elixir/membrane_videoroom/_build/dev/lib/*/ebin"
   command failed.
 Errors may have been logged above.
 You can recompile this dependency with "mix deps.compile p1_utils",
 update it with "mix deps.update p1_utils" or clean it with "mix deps.clean p1_utils"

How to solve it? My erlang/otp version is 24. Can anyone help!

lifan0913 commented 2 years ago

Solved with command: mix local.rebar

badlop commented 2 years ago

Thanks for reporting and providing a solution!

From what I see, mix local.rebar downloads rebar and rebar3 and installs them in your $HOME. And the error message probably means that the rebar3 installed previously was not compatible with your erlang version.

I guess this issue can be closed now.