Go build runtime: darwin / amd64 should be loaded using make.bash

I install golangwith brew install goin my mac osx 10.10.4, when I start go build, I got:

go build runtime: darwin/amd64 must be bootstrapped using make.bash

then refer to the question Cross Compilation Migrate to OSX?

First I tried:

brew install go --with-cc-all

but the question remains, I tried:

cd /usr/local/go/src
sudo GOOS=darwin GOARCH=amd64 CGO_ENABLED=0 ./make.bash --no-clean

but the question 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
+4
source share
2 answers

I built it from source . This is what I did:

From verification source to src:

src $ GOOS=darwin GOARCH=amd64 ./bootstrap.bash
#### Copying to ../../go-darwin-amd64-bootstrap
...
----
Bootstrap toolchain for 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 I unlock tbz and build it as usual:

$ tar xzf XXX/go-darwin-amd64-bootstrap.tbz

cd to this extracted directory. Then

$ ./all.bash
##### Building Go bootstrap tool.
cmd/dist
...

ALL TESTS PASSED

---
Installed Go for darwin/amd64...

$ go-darwin-amd64-bootstrap/bin/go version
go version go1.5 darwin/amd64

Hope this helps.

+2
source

Received the same issue.

, Go, brew

brew reinstall go --with-cc-all

goax, .

+1

Source: https://habr.com/ru/post/1599280/


All Articles