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/libc.so.6: 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]
]
]
]
end
# Run "mix help compile.app" to learn about applications.
def application do
[
extra_applications: [:logger],
mod: {Protohackers.Application, []}
]
end
# Run "mix help deps" to learn about dependencies.
defp deps do
[
# {:dep_from_hexpm, "~> 0.3.0"},
# {:dep_from_git, git: "https://github.com/elixir-lang/my_dep.git", tag: "0.1.0"}
]
end
end