I am running go build
and encounter following issue:
/tmp/___go_build_myproject_: error while loading shared libraries: libSomeLib_x64.so: cannot open shared object file: No such file or directory
I have libSomeLib_x64.so
compiled in another directory.
From this question I know that I should use ldconfig to link lib.
I tried both add lib path to /etc/ld.so.conf
and to export LD_LIBRARY_PATH
but nothing helped. How can I get rid of the error?