Go教程

go build后出现libWeWorkFinanceSdk_C.so报错

本文主要是介绍go build后出现libWeWorkFinanceSdk_C.so报错,对大家解决编程问题具有一定的参考价值,需要的程序猿们随着小编来一起学习吧!

问题描述:

/tmp/go-build3735770271/b001/exe/main: error while loading shared libraries: libWeWorkFinanceSdk_C.so: cannot open shared object file: No such file or directory
exit status 127

解决方案:

go get -u github.com/NICEXAI/WeWorkFinanceSDK
sudo vi /etc/ld.so.conf

添加:

/go/pkg/mod/github.com/!n!i!c!e!x!a!i/!we!work!finance!s!d!k@v1.0.13/lib 至ld.so.conf (上面的路径是你go get WeWorkFinanceSDK后的路径)

sudo ldconfig


这篇关于go build后出现libWeWorkFinanceSdk_C.so报错的文章就介绍到这儿,希望我们推荐的文章对大家有所帮助,也希望大家多多支持为之网!