<p>Fixed. I had the Cardano node previously installed which involves compiling and installing libsodium. What I did was go into the libsodium folder and <code>sudo make libsodium uninstall</code> Then re-ran nix installation and now I get a nix-shell.</p>

CC BY-SA 4.0
2022-01-16T04:25:19.470Z
Welcome to Cardano SE! As a new user be sure to take the [Tour].
gRebel
CC BY-SA 4.0
2022-02-08T13:56:36.913Z
For me the `make` command failed and I had to go to `/usr/local/lib`, created a backup directory and moved all `libsodium.*` files to it. This removed that existing lib and nix installed fine.
Skelli
CC BY-SA 4.0
2022-01-15T00:12:12.073Z
2022-01-15T00:12:12.073Z
drock00
<p>I had the same issue. I noticed it happens when you had/have previously setup a Cardano node since that required setting up libsodium. The issue is with the <code>LD_LIBRARY_PATH</code> envronment variable added in the process.</p>
<p>To solve it I commented out that variable export in the <code>~/.bashrc</code> file. You may need to restart the terminal for the change to take effect.</p>

CC BY-SA 4.0
2022-06-29T20:37:39.460Z
2022-06-29T20:37:39.460Z
Skelli
<p>I went ahead and got ahold of a fedora 35 install. I was <em>not</em> able to install the <code>--daemon</code> version, due to <a href="https://github.com/NixOS/nix/issues/2374" rel="nofollow noreferrer">fedoras SELinux enforcement</a>. I did however manage to install <code>nix</code> in single user mode.</p>
<p>and nix-shell works.</p>
<pre><code>$ nix-shell -p hello
these 42 paths will be fetched (61.29 MiB download, 281.92 MiB unpacked):
...
[nix-shell:~]$ hello
Hello, world!

[nix-shell:~]$
</code></pre>

CC BY-SA 4.0
2022-01-14T23:49:29.080Z
Sadly I'm getting the same error with single user mode installation.

`sh <(curl -L https://nixos.org/nix/install) --no-daemon`
copying Nix to /nix/store...........................................
/nix/store/azld8vfyqb4fx6bxdz28n3nw23nghf88-nix-2.5.1/bin/nix-store: /nix/store/jsp3h3wpzc842j0rz61m5ly71ak6qgdn-glibc-2.32-54/lib/libc.so.6: version `GLIBC_2.33' not found (required by /usr/local/lib/libsodium.so.23)
/tmp/nix-binary-tarball-unpack.PWdwdaEWRp/unpack/nix-2.5.1-x86_64-linux/install: unable to register valid paths
drock00
CC BY-SA 4.0
2022-01-14T08:52:21.353Z
2022-01-14T08:52:21.353Z
angerman
<p>I just ran <code>sh &lt;(curl -L https://nixos.org/nix/install) --daemon</code>  to install nix via its installation instructions. I proceeded through the installation menu where it backs up your bashrc and other config files. <code>y</code> on sudo permissions, it installs and doesn't complain.</p>
<p><code>systemctl status systemctl status nix-daemon.service</code>
daemon running with no issues. However when I execute <code>nix-shell</code> I get</p>
<pre><code>nix-shell: /nix/store/jsp3h3wpzc842j0rz61m5ly71ak6qgdn-glibc-2.32-54/lib/libc.so.6: version GLIBC_2.33' not found (required by /usr/local/lib/libsodium.so.23)
</code></pre>
<p>When I execute <code>nix-env --version</code> same error.</p>
<p>I've uninstalled / reinstalled nix several times now and getting the same error. Checked Fedora 35 glibc version <code> ldd --version</code> and get back 2.34</p>
<p>Any advice on getting nix-shell to execute properly in Fedora 35?</p>

CC BY-SA 4.0
2022-01-14T04:39:26.190Z
Welcome to Cardano SE! As a new user be sure to take the [Tour].
gRebel
CC BY-SA 4.0
2022-01-14T04:43:56.720Z
Where id you run `nix-shell`, in which folder?
angerman
<nix><nix-shell>
nix installation issue on Fedora 35
# nix installation issue on Fedora 35

(Asked by: username_0 on 2022-01-14)

I just ran sh <(curl -L https://nixos.org/nix/install) --daemon  to install nix via its installation instructions. I proceeded through the installation menu where it backs up your bashrc and other config files. y on sudo permissions, it installs and doesn't complain.
systemctl status systemctl status nix-daemon.service
daemon running with no issues. However when I execute nix-shell I get
nix-shell: /nix/store/jsp3h3wpzc842j0rz61m5ly71ak6qgdn-glibc-2.32-54/lib/libc.so.6: version GLIBC_2.33' not found (required by /usr/local/lib/libsodium.so.23)

When I execute nix-env --version same error.
I've uninstalled / reinstalled nix several times now and getting the same error. Checked Fedora 35 glibc version  ldd --version and get back 2.34
Any advice on getting nix-shell to execute properly in Fedora 35?

**Tags:** nix, nix-shell
> **Comments:**
> **username_1**: Welcome to Cardano SE! As a new user be sure to take the [Tour].  
> **username_2**: Where id you run `nix-shell`, in which folder?  

---

## 3 answers

### Answer by username_0 on 2022-01-15. Score: 3

Fixed. I had the Cardano node previously installed which involves compiling and installing libsodium. What I did was go into the libsodium folder and `sudo make libsodium uninstall` Then re-ran nix installation and now I get a nix-shell.

> **Comments:**
> **username_1**: Welcome to Cardano SE! As a new user be sure to take the [Tour].  
> **username_3**: For me the `make` command failed and I had to go to `/usr/local/lib`, created a backup directory and moved all `libsodium.*` files to it. This removed that existing lib and nix installed fine.  

---

### Answer by username_3 on 2022-06-29. Score: 0

I had the same issue. I noticed it happens when you had/have previously setup a Cardano node since that required setting up libsodium. The issue is with the `LD_LIBRARY_PATH` envronment variable added in the process.

To solve it I commented out that variable export in the `~/.bashrc` file. You may need to restart the terminal for the change to take effect.


---

### Answer by username_2 on 2022-01-14. Score: 0

I went ahead and got ahold of a fedora 35 install. I was not able to install the --daemon version, due to fedoras SELinux enforcement. I did however manage to install nix in single user mode.
and nix-shell works.
$ nix-shell -p hello
these 42 paths will be fetched (61.29 MiB download, 281.92 MiB unpacked):
...
[nix-shell:~]$ hello
Hello, world!

[nix-shell:~]$

> **Comments:**
> **username_0**: Sadly I'm getting the same error with single user mode installation.  `sh <(curl -L https://nixos.org/nix/install) --no-daemon` copying Nix to /nix/store........................................... /nix/store/azld8vfyqb4fx6bxdz28n3nw23nghf88-nix-2.5.1/bin/nix-store: /nix/store/jsp3h3wpzc842j0rz61m5ly71ak6qgdn-glibc-2.32-54/lib/libc.so.6: version `GLIBC_2.33' not found (required by /usr/local/lib/libsodium.so.23) /tmp/nix-binary-tarball-unpack.PWdwdaEWRp/unpack/nix-2.5.1-x86_64-linux/install: unable to register valid paths  

---

