在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
Go编译报错“cgo: C compiler “x86_64-linux-musl-gcc“ not found:”
阅读 78
2023-05-10
在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)