针对你提出的问题“cgo: c compiler "x86_64-linux-musl-gcc" not found: exec: "x86_64-linux-musl-”,我将按照你提供的tips进行解答: 确认系统是否已安装x86_64-linux-musl-gcc编译器: 你可以通过在终端运行以下命令来检查x86_64-linux-musl-gcc是否已安装: bash x86_64-linux-musl-gcc --version ...
在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 1. 2. 因为没有安装musl包,执行下面命令安装即可: brew install musl-cross 1....
musl-gcc: command not found On ubuntu I can fix this with apt-get install musl-tools. I suspect there is no workaround for this, but it probably should be noted in the readme that a compiler is required to build this, and specifically musl-gcc if building for the the musl target....