Could not compile dependency :jiffy

995 Views Asked by At

I'm trying to run a mix server:

...
Compiling c_src/decoder.c
sh: 1: exec: cc: not found
===> Hook for compile failed!

** (Mix) Could not compile dependency :jiffy, "/home/user/.mix/rebar3 bare compile --paths "/home/user/app_build/_build/prod/lib/*/ebin"" command failed. You can recompile this dependency with "mix deps.compile jiffy", update it with "mix deps.update jiffy" or clean it with "mix deps.clean jiffy"
...

Is there any solution for this case?

$ mix local.rebar
$ rm -rf deps
$ rm -rf _build
$ mix deps.get

Not helping :-(

rebar 3.6.1 on Erlang/OTP 22 Erts 10.4.2

Elixir 1.8.2 (compiled with Erlang/OTP 20)

Ubuntu 18.04.2 LTS

1

There are 1 best solutions below

0
On BEST ANSWER

It sounds like you do not have a C compiler installed. Try $ apt-get install build-essential to install one.