osx - go build runtime: darwin/amd64 must be bootstrapped using make.bash -
i install golang brew install go in mac osx 10.10.4, when run go build got:
go build runtime: darwin/amd64 must bootstrapped using make.bash then refer question cross compile go on osx?
first tried:
brew install go --with-cc-all but question remain, tried:
cd /usr/local/go/src sudo goos=darwin goarch=amd64 cgo_enabled=0 ./make.bash --no-clean but question still remains. how can 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
i built source. i've done:
from checkout source, in src:
src $ goos=darwin goarch=amd64 ./bootstrap.bash #### copying ../../go-darwin-amd64-bootstrap ... ---- bootstrap toolchain darwin/amd64 installed in xxx/go-darwin-amd64-bootstrap. building tbz. -rw-r--r-- 1 hvn staff 48149988 aug 21 10:48 xxx/go-darwin-amd64-bootstrap.tbz then unarchive tbz , build normal:
$ tar xzf xxx/go-darwin-amd64-bootstrap.tbz cd extracted dir. then
$ ./all.bash ##### building go bootstrap tool. cmd/dist ... tests passed --- installed go darwin/amd64... $ go-darwin-amd64-bootstrap/bin/go version go version go1.5 darwin/amd64 hope help.
Comments
Post a Comment