简体   繁体   English

无法编译依赖项:jiffy

[英]Could not compile dependency :jiffy

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 Erlang/OTP 22 Erts 10.4.2 上的钢筋 3.6.1

Elixir 1.8.2 (compiled with Erlang/OTP 20) Elixir 1.8.2(使用 Erlang/OTP 20 编译)

Ubuntu 18.04.2 LTS Ubuntu 18.04.2 LTS

It sounds like you do not have a C compiler installed.听起来您没有安装 C 编译器。 Try $ apt-get install build-essential to install one.尝试$ apt-get install build-essential安装一个。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM