Public IP change leads to symbol lookup error (cardano-node: undefined symbol: crypto_vrf_publickeybytes)

Hi Community,
I am following stake pool school . Every time my public IP changes I got an error when starting testnet node .
Error is: cardano-node: symbol lookup error: cardano-node: undefined symbol: crypto_vrf_publickeybytes
I tried to change the public IP in the cardano node run commands. But still got the same error what am I missing?

Hello,
did you install the libsodium library?

Yes I did. And after editing .bashrc with
export
LD_LIBRARY_PATH="/usr/local/lib:$LD_LIBRARY_PATH" and
export PKG_CONFIG_PATH="/usr/local/lib/pkgconfig:$PKG_CONFIG_PATH"

Now It works fine.

Just want to share that this has helped me also. The relay I was setting up kept on stopping with the same error. After reading this thread and checking env, I saw that the two variables were not set. Set them as recommended and it went past the epoch it was stopping at (#73). Glad this forum has this kind of technical history which can help people 6 months later. Commands I did to fix it before running the node again:

export LD_LIBRARY_PATH="/usr/local/lib:$LD_LIBRARY_PATH"
export PKG_CONFIG_PATH="/usr/local/lib/pkgconfig:$PKG_CONFIG_PATH"