在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
在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
暂无评论
2023-12-02
2023-11-02
2023-11-02
2023-11-02
2023-11-02
2023-11-02
2023-11-02
2024-03-28
2024-03-13
2024-03-11
2024-03-02
2024-02-27
2024-02-22
2024-02-22
2024-02-20
2024-02-19
2024-02-19
2024-02-19
2024-02-19
2024-01-22
2024-01-21
2024-01-15
2024-01-12
2023-12-29
2023-12-29
2023-12-25