Help building with enacl

I am trying to use enacl in a server I’m building. The problem is a missing .so file. This is my deps section from rebar.config:

{deps, [
    {cowboy, ".*", {git, "", {branch, "master"}}},
    {jiffy, ".*", {git, "", {branch, "master"}}},
    {erlcron, ".*", {git, "", {branch, "master"}}},
    {libsodium, ".*", {git, "", {branch, "stable"}}},
    {enacl, ".*", {git, "", {branch, "master"}}}

During compilation I can see both libsodium and enacl being built, but when I attempt to run the server,
it crashes with the error

lenacl_nif: '/snap/core18/current/lib/x86_64-linux-gnu/ version `GLIBC_2.33' not found (required by /usr/local/lib/```

My gclib local version:
(Ubuntu GLIBC 2.35-0ubuntu3.7) 2.35

I fixed the issue. The problem was that my installation of Erlang (v.22) was using a snap instance that was not compatible with enacl build. Linux keeps multiple versions for compatibility. The build of enacl was local and using the correct GLIBC. Once I upgraded my installation of Erlang to v.26 all issues went away. The new version of Erlang was using the most current GLIBC.