# Help building with enacl

**URL:** <https://erlangforums.com/t/help-building-with-enacl/3626>\
**Category:** Questions / Help\
**Tags:** rebar3, erlang\
**Created:** [May 16, 2024, 1:47am UTC](https://erlangforums.com/t/help-building-with-enacl/3626 "2024-05-16T01:47:15Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![olegzil](https://erlangforums.com/user_avatar/erlangforums.com/olegzil/32/1651_2.png) [@olegzil](https://erlangforums.com/u/olegzil)\
**Post date:** [May 16, 2024, 1:47am UTC](https://erlangforums.com/t/help-building-with-enacl/3626/1 "2024-05-16T01:47:15Z")

</div>

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:

```erlang
{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

````erlang
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
````

---

<div class="post-metadata">

**Author:** ![olegzil](https://erlangforums.com/user_avatar/erlangforums.com/olegzil/32/1651_2.png) [@olegzil](https://erlangforums.com/u/olegzil)\
**Post date:** [May 16, 2024, 4:34pm UTC](https://erlangforums.com/t/help-building-with-enacl/3626/2 "2024-05-16T16:34:41Z")

</div>

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.
