WebYou can easily set the target operating system and processor architecture using the environment variables GOOS and GOARCH respectively. So, as you want to build it for … WebJan 4, 2024 · Connect and share knowledge within a single location that is structured and easy to search. Learn more about Teams Unsupported GOOS/GOARCH pair mingw64_nt …
- The Go Programming Language
WebMay 1, 2024 · Here’s the command you need to run to compile your Go project for a 64-bit Windows machine: $ GOOS=windows GOARCH=amd64 go build -o bin/app-amd64.exe … WebJul 27, 2024 · When compiling the go project under windowds, when you perform the following operations: SET CGO_ENABLED = 0 set GOARCH = amd64 set GOOS = linux go … sterile wrap
Cross-compiling Go for Raspberry Pi by chrischdi Medium
Web"unsupported GOOS/GOARCH pair xxx/xxx" occurs during compilation Not all GOOS/GOARCH pairs are supported by go, such as go1.17.3 cannot support windows/arm64. You can check all supported pairs through go tool dist list. "cannot execute binary file: Exec format error" occurs when running binaries built on other platform. Web运行上面的代码可以让我. OS: linux Architecture: amd64. 当我尝试在windows上交叉编译时 (使用JetBrain的Goland IDE) > go version go version go1.9.2 windows /amd64. 使用 … WebMay 18, 2024 · linux-aarhus 19 May 2024 09:19 3. One would think that zsh users would have to apply this to .zshrc - if they run into this. 1 Like. system Closed 3 June 2024 09:19 … sterile wound covering crossword clue