I was able to get past this issue previously with the block producer server but I am drawing a blank for the relay1 server that I am creating from the beginning. It seems to fail soon after git checkout tags. I appreciate any assistance.
It turns out to be a directory issue. Make sure you are installing each step in the correct directory. It is very easy to get confused.
I ran into this same issue and found a solution from this post Problem installing Sodium package in R on an Ubuntu system - Stack Overflow
Basically all I did was run
sudo apt install libsodium-dev
and then re-ran “cabal build”
And for mac users → brew install libsodium
Sadly, the problem is back now (2+ years later on 8.1.2) and having libsodium
installed makes no difference. (This is on ArchLinux.) Specifically, there is no such thing like libsodium-any
. The package is called libsodium
, that’s all. The obvious hack sudo ln /usr/lib/pkgconfig/libsodium{,-any}.pc
doesn’t work and builds still fail. This used to work fine until a few weeks ago.