Hey,
I’m trying to compile my project on a Ubuntu 16.04. Digital Ocean server, but I keep getting the error:
** (Mix) Could not compile dependency :certifi, "/root/.mix/rebar3 bare compile --paths
"/root/curvita/_build/dev/lib/*/ebin"" command failed. You can recompile this dependency with "mix deps.compile
certifi", update it with "mix deps.update certifi" or clean it with "mix deps.clean certifi"
Everything works fine on my local OSX machine.
Versions on both Ubuntu server and OSX are:
Elixir 1.4.5
Erlang 20
The full debug log is:
===> Expanded command sequence to be run: []
===> Expanded command sequence to be run: [{default,app_discovery},
{bare,compile}]
===> Compiling certifi
===> sh info:
cwd: "/root/curvita/deps/certifi"
cmd: make -C certs_spec all
===> opts: [use_stdout,
{cd,"/root/curvita/deps/certifi"},
{env,[{"REBAR_DEPS_DIR",
"/root/curvita/deps/certifi/_build/default/lib"},
{"REBAR_BUILD_DIR",
"/root/curvita/deps/certifi/_build/default"},
{"REBAR_ROOT_DIR","/root/curvita/deps/certifi/."},
{"REBAR_CHECKOUTS_DIR",
"/root/curvita/deps/certifi/_checkouts"},
{"REBAR_PLUGINS_DIR",
"/root/curvita/deps/certifi/_build/default/plugins"},
{"REBAR_GLOBAL_CONFIG_DIR","/root/.config/rebar3"},
{"REBAR_GLOBAL_CACHE_DIR","/root/.cache/rebar3"},
{"REBAR_TEMPLATE_DIR","/root/.config/rebar3/templates"},
{"REBAR_APP_DIRS",
"/root/curvita/deps/certifi/_build/default/apps/*:/root/curvita/deps/certifi/_build/default/lib/*:/root/curvita/deps/certifi/_build/default/."},
{"REBAR_SRC_DIRS",[]},
{"ERLANG_ERTS_VER","9.0"},
{"ERLANG_ROOT_DIR","/usr/lib/erlang"},
{"ERLANG_LIB_DIR_erl_interface",
"/usr/lib/erlang/lib/erl_interface-3.10"},
{"ERLANG_LIB_VER_erl_interface","3.10"},
{"ERL","/usr/lib/erlang/bin/erl"},
{"ERLC","/usr/lib/erlang/bin/erlc"},
{"ERLANG_ARCH","64"},
{"ERLANG_TARGET","20.0-x86_64-unknown-linux-gnu-64"}]},
{abort_on_error,"Hook for compile failed!\n"}]
===> Port Cmd: make -C certs_spec all
Port Opts: [{cd,"/root/curvita/deps/certifi"},
{env,[{"REBAR_DEPS_DIR",
"/root/curvita/deps/certifi/_build/default/lib"},
{"REBAR_BUILD_DIR",
"/root/curvita/deps/certifi/_build/default"},
{"REBAR_ROOT_DIR","/root/curvita/deps/certifi/."},
{"REBAR_CHECKOUTS_DIR",
"/root/curvita/deps/certifi/_checkouts"},
{"REBAR_PLUGINS_DIR",
"/root/curvita/deps/certifi/_build/default/plugins"},
{"REBAR_GLOBAL_CONFIG_DIR","/root/.config/rebar3"},
{"REBAR_GLOBAL_CACHE_DIR","/root/.cache/rebar3"},
{"REBAR_TEMPLATE_DIR","/root/.config/rebar3/templates"},
{"REBAR_APP_DIRS",
"/root/curvita/deps/certifi/_build/default/apps/*:/root/curvita/deps/certifi/_build/default/lib/*:/root/curvita/deps/certifi/_build/default/."},
{"REBAR_SRC_DIRS",[]},
{"ERLANG_ERTS_VER","9.0"},
{"ERLANG_ROOT_DIR","/usr/lib/erlang"},
{"ERLANG_LIB_DIR_erl_interface",
"/usr/lib/erlang/lib/erl_interface-3.10"},
{"ERLANG_LIB_VER_erl_interface","3.10"},
{"ERL","/usr/lib/erlang/bin/erl"},
{"ERLC","/usr/lib/erlang/bin/erlc"},
{"ERLANG_ARCH","64"},
{"ERLANG_TARGET","20.0-x86_64-unknown-linux-gnu-64"}]},
exit_status,
{line,16384},
use_stdio,stderr_to_stdout,hide,eof]
sh: 1: exec: make: not found
===> Hook for compile failed!
** (Mix) Could not compile dependency :certifi, "/root/.mix/rebar3 bare compile --paths "/root/curvita/_build/dev/lib/*/ebin"" command failed. You can recompile this dependency with "mix deps.compile certifi", update it with "mix deps.update certifi" or clean it with "mix deps.clean certifi"