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?
Answer is here: https://codeyarns.com/2017/11/02/how-shared-library-locations-are-found-at-runtime/
I added my *.so
libs into /lib/
directory.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.