报错信息:
root@ubuntu:/# go build
# fabric
/go/pkg/tool/linux_amd64/link: running gcc failed: exit status 1
/usr/bin/ld: cannot find -lltdl
/usr/bin/ld: cannot find -lltdl
collect2: error: ld returned 1 exit status
解决方式:
终端命令行输入 export CGO_ENABLED=0
按Enter回车 即可解决