//重新安裝golang
brew install go --with-cc-all
//編譯檔案於哪個OS下使用
//linux
GOOS=linux GOARCH=amd64 go build
//mac
GOOS=darwin GOARCH=amd64 go build
//
http://stackoverflow.com/questions/31586320/go-build-runtime-darwin-amd64-must-be-bootstrapped-using-make-bash
http://stackoverflow.com/questions/12168873/cross-compile-go-on-osx
http://stackoverflow.com/questions/27412601/cross-compiling-go
http://stackoverflow.com/questions/25051623/golang-compile-for-all-platforms-in-windows-7-32-bit
http://www.goinggo.net/2013/10/cross-compile-your-go-programs.html
//編譯檔案OS
https://github.com/mitchellh/gox
沒有留言:
張貼留言