Skip to content

Installing on MacOS Big Sur #360

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
bullgare opened this issue Nov 28, 2020 · 7 comments
Open

Installing on MacOS Big Sur #360

bullgare opened this issue Nov 28, 2020 · 7 comments

Comments

@bullgare
Copy link

Installing go from scratch does not work for Big Sur as 1.4 does not have a binary for this OS (this command fails - gvm install go1.4 -B).
To use gvm, you can do this:

  1. Install go from the official site
  2. gvm install go1.15.5
  3. gvm use go1.15.5 --default
  4. sudo rm -rvf /usr/local/go/ (which will uninstall non-gvm version).
@teuber789
Copy link

Thanks @bullgare, this worked for me as well.

@dkorunic
Copy link

dkorunic commented Dec 4, 2020

Not only that, upgrading Go on Big Sur is broken since version checking code in download_binary() doesn't handle 11.0.x properly, resulting in "Binary Go unavailable for this platform" error message and exit 1.

@patrykkrawczyk
Copy link

patrykkrawczyk commented Jan 5, 2021

in my opinion it's simpler and safer with brew (no need for sudo rm -rf):

brew install go
gvm install go1.15.5
gvm use go1.15.5 --default
brew uninstall go

@septs
Copy link

septs commented Mar 13, 2021

without homebrew version

$ curl -sSL https://golang.org/dl/go1.16.2.darwin-amd64.tar.gz | tar zxv
$ export GOROOT_BOOTSTRAP="$(pwd)/go"
$ gvm install go1.16.2
Downloading Go source...
Installing go1.16.2...
 * Compiling...
go1.16.2 successfully installed!
$ rm -rf go

@jeremy-ebler-vineti
Copy link

I submitted a patch that should resolve this #380

Go version 1.4.x, is ancient at this point and will not work on Big Sur (it's nearly 6 years old), but more recent binary versions work as expected.

@curtismenmuir
Copy link

Agree with @patrykkrawczyk re brew.

One thing to add, remember to export GOROOT_BOOTSTRAP. If not then future gym install commands will fail to compile

brew install go
gvm install go1.15.5
gvm use go1.15.5 --default
brew uninstall go
export GOROOT_BOOTSTRAP=$GOROOT
gvm install go1.18.3
gvm use go1.18.3 --default

@dothanhlam
Copy link

dothanhlam commented Jan 4, 2023

For Mac M1, I was only success with go1.18 or go1.19
brew install go
gvm install go1.19
gvm use go1.19 --default
brew uninstall go
export GOROOT_BOOTSTRAP=$GOROOT

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

8 participants