无法编译依赖项:jiffy

时间:2019-06-19 15:33:00

标签: elixir phoenix-framework rebar jiffy

我正在尝试运行混合服务器:

...
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"
...

这种情况有解决方案吗?

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

没有帮助:-(

Erlang / OTP 22 Erts 10.4.2上的钢筋3.6.1

Elixir 1.8.2(与Erlang / OTP 20编译)

Ubuntu 18.04.2 LTS

1 个答案:

答案 0 :(得分:2)

听起来您没有安装C编译器。尝试$ apt-get install build-essential安装一个。

相关问题