running gcc failed: exit status 1
约 53 字
预计阅读 1 分钟
次阅读
今天在编译 go 项目时出现了如下错误:
1
2
3
4
|
/usr/local/go/pkg/tool/linux_amd64/link: running gcc failed: exit status 1
/usr/bin/ld: cannot find -lpthread
/usr/bin/ld: cannot find -lc
collect2: error: ld returned 1 exit status
|
解决办法:
1
|
yum install glibc-static.x86_64 -y
|