0
点赞
收藏
分享

微信扫一扫

Go编译报错“cgo: C compiler “x86_64-linux-musl-gcc“ not found:”

东林梁 2023-05-10 阅读 78

在mac上构建go项目成linux平台时候,报错如下:

# runtime/cgo
cgo: C compiler "x86_64-linux-musl-gcc" not found: exec: "x86_64-linux-musl-gcc": executable file not found in $PATH

因为没有安装musl包,执行下面命令安装即可:

brew install musl-cross
举报

相关推荐

0 条评论