Running my mix release on a different machine complains about a missing GLIBC version

Main OS: EndeavourOS
Server OS: Devuan 4

So I just created a tarball of my Elixir application using MIX_ENV=prod mix release protohackers, and I sent the _build/prod/protohackers-0.1.0.tar.gz tarball to my server. After unpacking and running it using bin/protohackers start I get the following error: /home/www-docker/protohackers/erts-13.2/bin/erlexec: /lib/x86_64-linux-gnu/ version 'GLIBC_2.34' not found (required by /home/www-docker/protohackers/erts-13.2/bin/erlexec)

I searched around for a bit, but I couldn’t find any info specific for Elixir. How do I fix this error?

My mix.exs
defmodule Protohackers.MixProject do
  use Mix.Project

  def project do
      app: :protohackers,
      version: "0.1.0",
      elixir: "~> 1.14",
      start_permanent: Mix.env() == :prod,
      deps: deps(),
      releases: [
        protohackers: [
          include_executables_for: [:unix],
          steps: [:assemble, :tar]

  # Run "mix help" to learn about applications.
  def application do
      extra_applications: [:logger],
      mod: {Protohackers.Application, []}

  # Run "mix help deps" to learn about dependencies.
  defp deps do
      # {:dep_from_hexpm, "~> 0.3.0"},
      # {:dep_from_git, git: "", tag: "0.1.0"}

What you’re doing is not generally supported, as per the requirements documented:

1 Like