dtrj74376
dtrj74376
2017-12-08 19:05

ldconfig注册.so lib

已采纳

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?

  • 点赞
  • 写回答
  • 关注问题
  • 收藏
  • 复制链接分享
  • 邀请回答

1条回答

相关推荐