无法编译依赖项:jiffy
Could not compile dependency :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
没有帮助:-(
rebar 3.6.1 on Erlang/OTP 22 Erts 10.4.2
Elixir 1.8.2(使用 Erlang/OTP 20 编译)
Ubuntu 18.04.2 LTS
听起来你没有安装 C 编译器。尝试 $ apt-get install build-essential
安装一个。
我正在尝试 运行 混合服务器:
...
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
没有帮助:-(
rebar 3.6.1 on Erlang/OTP 22 Erts 10.4.2
Elixir 1.8.2(使用 Erlang/OTP 20 编译)
Ubuntu 18.04.2 LTS
听起来你没有安装 C 编译器。尝试 $ apt-get install build-essential
安装一个。