Dear all,
Cardano-Node 1.35.0 on Relay-Server is running, but the Core-Node doesn’t start because of:
error while loading shared libraries: libsecp256k1.so.0: cannot open shared object file: No such file or directory
I checked already the PATH Variable and LD_LIBRARY_PATH Variable but it remains the same.
What is confusing me though is why your compiled version is asking for this shared library when mine is not.
When I compiled version 1.35.0, I also compiled and installed libsecp256k1. However, I believe this library was statically linked in to the cardano-node binary.
When I run cardano-node version 1.35.0 on another machine the libsecp256k1 library is not required for it to run.
Yes, I added both paths.
For the entry in .bashrc I would guess, that
export LD_LIBRARY_PATH=/usr/local/lib is better, because echo $LD_LIBRARY_PATH gives /usr/local/lib:/usr/local/lib: with the other syntax, but I tried both.
I have compiled libsecp256k1 myself and then used this library to compile cardano-node version 1.35.0. My compiled version appears to run correctly.
I am building the cardano-node as a debian package and the debian tools do some automagic stuff that I don’t properly understand. I suspect that these tools could be producing my cardano-node binary with its libraries statically linked when maybe they shouldn’t be.
As I said, my compiled cardano-node binary works properly, but I don’t need libsecp256k1 installed on the running machine. I only need this library on the compiling machine.
Hi @Alexd1985 : My compiled version 1.35.0 is running fine. However, I wonder if I shouldn’t be having libsecp256k1 statically linked in. The reason I ask is because the initial poster @solydar said he got this error when starting his 1.35.0 node:
Which seems to indicate that his libsecp256k1 is dynamically linked and therefore this library needs to be installed on the computer running the node.
Note that libsecp256k1 is not listed in my output because it has been statically linked for some reason. I am trying to see if there are any other libraries that my binary has statically linked.
I had an almost similar issue. I had installed both libsodium and libsecp256k1 as indicated in the iohk guide. After doing cabal build all it failed with the same error. I thought it could be that both libraries files paths may not be ‘loaded’ and so I restarted my Fedora machine.