Failing to run sudo -Hu pleroma mix pleroma.instance gen on Debian 10
Environment
- Installation type:
-
OTP -
From source
-
- Pleroma version (could be found in the "Version" tab of settings in Pleroma-FE): stable
- Elixir version (
elixir -v
for from source installations, N/A for OTP): Elixir 1.10.3 (compiled with Erlang/OTP 21) - Operating system: Debian 10
- PostgreSQL version (
postgres -V
):
Bug description
Running sudo -Hu pleroma mix pleroma.instance gen
fails at
===> Compiling crypt
make: Entering directory '/opt/pleroma/deps/crypt/c_src'
cc /opt/pleroma/deps/crypt/c_src/crypt.o -lpthread -lcrypt -shared -L /usr/lib/erlang/lib/erl_interface-4.0/lib -lerl_interface -lei -o /opt/pleroma/deps/crypt/c_src/../priv/crypt.so
/usr/bin/ld: cannot find -lerl_interface
collect2: error: ld returned 1 exit status
make: *** [Makefile:58: /opt/pleroma/deps/crypt/c_src/../priv/crypt.so] Error 1
make: Leaving directory '/opt/pleroma/deps/crypt/c_src'
===> Hook for compile failed!
** (Mix) Could not compile dependency :crypt, "/var/lib/pleroma/.mix/rebar3 bare compile --paths="/opt/pleroma/_build/dev/lib/*/ebin"" command failed. You can recompile this dependency with "mix deps.compile crypt", update it with "mix deps.update crypt" or clean it with "mix deps.clean crypt"
Edited by dtluna