【发布时间】:2019-11-02 09:50:06
【问题描述】:
我正在尝试运行混合服务器:
...
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 上的 rebar 3.6.1
Elixir 1.8.2(使用 Erlang/OTP 20 编译)
Ubuntu 18.04.2 LTS
【问题讨论】:
-
听起来你没有 c 编译器。试试
apt-get install build-essential。 -
@JustinWood 是的!谢谢!
-
@JustinWood 你能发表他的评论作为答案吗?所以我可以感谢你的回答
标签: elixir phoenix-framework rebar jiffy