Skip to content

WriteFreely won't start on older OSes due to glibc issue #1064

@thebaer

Description

@thebaer

Describe the bug

When attempting to run the WriteFreely v0.15.1 release build on anything before Ubuntu 20.04, it fails to start with this error message:

./writefreely: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.28' not found (required by ./writefreely)

This didn't happen with Go 1.19, but with the update to Go 1.21 (#1025), we now see this on systems that don't have this version of glibc (see golang/go#58550). We can't use the CGO_ENABLED=0 fix, because we need CGO for sqlite.

Instead, we should statically compile WriteFreely for release -- see golang/go#26492 (comment) for a potential starting point.

Workaround

Admins can compile WriteFreely from scratch on their target server by cloning the repository and running:

make build

Application configuration

  • Single mode or Multi-user mode? n/a
  • Database? n/a
  • Open registration? n/a
  • Federation enabled? n/a

Version or last commit: v0.15.1 (release build)

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions