I install golang
with brew install go
in my mac osx 10.10.4
, when I run go build
I got:
go build runtime: darwin/amd64 must be bootstrapped using make.bash
then refer to the question Cross compile Go on OSX?
first I tried:
brew install go --with-cc-all
but question remain, then I tried:
cd /usr/local/go/src
sudo GOOS=darwin GOARCH=amd64 CGO_ENABLED=0 ./make.bash --no-clean
but the question still remains. So how can I fix this?
System Version: OS X 10.10.4 (14E46)
Kernel Version: Darwin 14.4.0
Go Version: go version go1.4.2 darwin/amd64