In Alpine, you must first install gcompat to get past the Could not find wrtc binary on any of the paths error others have reported [1]:
This is because the try/catch in bindings.js swallows the error (assuming it is a .node file not found) and hides the true error:
Could not open '/lib/ld-linux-aarch64.so.1': No such file or directory
Alpine doesn't include ld-linux-aarch64.so.1, but you can get it through gcompat as shown above. It may be worthwhile to put this in the README.
However, after doing this, wrtc is still not usable, as loading build-linux-x64/wrtc.node immediately segfaults. This is not uncommon, and not necessarily difficult to fix as there are a ton of people trying to make things compatible with alpine. However, this is as far as I could take it without needing to start doing an actual build to debug further. For now I am switching to bookworm linux, but it would be nice to use this on alpine instead. Hopefully this helps a bit to get it there.
In Alpine, you must first install
gcompatto get past theCould not find wrtc binary on any of the pathserror others have reported [1]:This is because the try/catch in
bindings.jsswallows the error (assuming it is a .node file not found) and hides the true error:Could not open '/lib/ld-linux-aarch64.so.1': No such file or directoryAlpine doesn't include ld-linux-aarch64.so.1, but you can get it through
gcompatas shown above. It may be worthwhile to put this in the README.However, after doing this,
wrtcis still not usable, as loadingbuild-linux-x64/wrtc.nodeimmediately segfaults. This is not uncommon, and not necessarily difficult to fix as there are a ton of people trying to make things compatible with alpine. However, this is as far as I could take it without needing to start doing an actual build to debug further. For now I am switching to bookworm linux, but it would be nice to use this on alpine instead. Hopefully this helps a bit to get it there.