angristan / docker-pleroma

Docker image for the Pleroma federated social network
https://git.pleroma.social/pleroma/pleroma/
MIT License
348 stars 75 forks source link

Build fails with `fatal error: erl_nif.h: No such file or directory` #87

Open lamemakes opened 3 months ago

lamemakes commented 3 months ago

Hey there!

I'm running into an issue trying to get this stood up running rootless docker. All works fine until this line is executed: https://github.com/angristan/docker-pleroma/blob/19c8125218fa6406cff6dcefd03a32e3768a17f8/Dockerfile#L34

this causes the build to fail, giving the output of:

 In file included from /pleroma/deps/crypt/c_src/crypt.c:46:
 /usr/include/sys/errno.h:1:2: warning: #warning redirecting incorrect #include <sys/errno.h> to <errno.h> [-Wcpp]
     1 | #warning redirecting incorrect #include <sys/errno.h> to <errno.h>
       |  ^~~~~~~
 /pleroma/deps/crypt/c_src/crypt.c:47:10: fatal error: erl_nif.h: No such file or directory
    47 | #include <erl_nif.h>
       |          ^~~~~~~~~~~
 compilation terminated.

Anyone ran into this? I found a forum suggesting it was erlang-dev missing, but after adding that to the installed packages there was no difference. Pretty sure an existing dep covers this anyway.

This is on a Raspberry Pi 5 running Raspberry Pi OS. Cheers!