【问题标题】:Could not compile dependency :jiffy无法编译依赖项:jiffy
【发布时间】: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


【解决方案1】:

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

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2019-06-22
    • 2021-10-20
    • 2019-10-20
    • 2019-11-01
    • 1970-01-01
    • 1970-01-01
    • 2022-07-08
    相关资源
    最近更新 更多