[SOLVED]: SilverBullet Linux binary releases not working (on Alpine)

This problem looked familiar so I looked into it and also tried this in an LXC container on Alpine. The odd thing is that SilverBullet’s default docker containers are also running on Alpine, so I wouldn’t have expected to be a problem.

Anyway, the problem is this: linux - Docker Alpine executable binary not found even if in PATH - Stack Overflow

The SilverBullet binary is built against libc:

alpine-test:~# ldd silverbullet
        /lib64/ld-linux-x86-64.so.2 (0x7efae94a3000)
        libc.so.6 => /lib64/ld-linux-x86-64.so.2 (0x7efae94a3000)
Error relocating silverbullet: __vfprintf_chk: symbol not found
Error relocating silverbullet: __fprintf_chk: symbol not found

The fix is to install the libc6-compat package in Alpine:

alpine-test:~# apk add libc6-compat
(1/3) Installing musl-obstack (1.2.3-r2)
(2/3) Installing libucontext (1.3.2-r0)
(3/3) Installing gcompat (1.1.0-r4)
OK: 14 MiB in 44 packages

Then it runs fine