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, "https://github.com/ninenines/cowboy.git", {branch, "master"}}},
    {jiffy, ".*", {git, "https://github.com/davisp/jiffy.git", {branch, "master"}}},
    {erlcron, ".*", {git, "https://github.com/erlware/erlcron.git", {branch, "master"}}},
    {libsodium, ".*", {git, "https://github.com/jedisct1/libsodium.git", {branch, "stable"}}},
    {enacl, ".*", {git, "https://github.com/jlouis/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/libc.so.6: version `GLIBC_2.33' not found (required by /usr/local/lib/libsodium.so.26```

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.