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
Installing ARM version for Mac #385
Comments
In case it helps, I've managed to get it working as follows:
Having done that, I can now do |
Here's a "less pure" way of using gvm to install/manage go, but less involved: |
Ok, so I got this working for me in the end 2021 MacBook Pro, running MacOS Monterey, M1 Chip. Trying to get gvm to install go1.15.6. I downloading the binary manually from here: I download the darwin-amd64 binary. 👈🧐 More on this in a bit. First thing to do, is extract the tarball and just run the binary manually, check that it works on your machine. Now follow sazzers instructions to manually add it to your .gvm folder. Which binary to use? So this is where I'm a bit confused. My understanding is that the m1 chip is an ARM64 instruction set, so I'd assumed that was the right on to use. But seems like the AMD64 instruction set is the one to use, is that because rosetta is converting it? Does anyone want to enlighten me on this? |
There's another way:
After this, every time you want to install other version from gvm, then it would be built in ARM64 |
it works! Just replace the verion in the environments. |
@sazzer Can you elaborate on this, what's the filename and content? |
Maybe this will help you: #406 |
thanks @soulteary, this works great for me! |
This worked fine for me and it's pretty straight forward solution, it only works to install go1.16+ with gvm though (AFAIK there is no support for arm64 for go older versions). Homebrew installs at this time the latest amd64 version available, so I downloaded the arm64 installer from go official site instead. I executed |
This can be put into a script called gvm-install-mac-version and be used like:
|
go1.16.7.darwin-arm64
is available here https://golang.org/dl/But how do I install 1.16.7 darwin arm64 via gvm?
When I do
gvm install 1.16.7
, it installs darwin/amd64.The text was updated successfully, but these errors were encountered: