moovweb / gvm

Go Version Manager
http://github.com/moovweb/gvm
MIT License
9.88k stars 520 forks source link

Apple M1 Macbook Pro install: "bad CPU type in executable: go" #417

Open trmiller opened 1 year ago

trmiller commented 1 year ago

Following the installation instructions, in addition to the go1.5 section on the README:

I am getting the following error when running anything with the binary installed go1.4, including go version or gvm install go1.5:

zsh: bad CPU type in executable: go

I have installed rosetta with softwareupdate --install-rosetta

and which go points to the go1.4 version under GVM

Any suggestions?

AsadSaleh commented 1 year ago

The same here. Don't know what to do. Gonna do manual install now.

devravi commented 1 year ago

I also face the same issue.

koioannis commented 1 year ago

Hi, it might be due to the fact that it is installing the x86 binaries. Check #406 or #385 for more.

devravi commented 1 year ago

@koioannis Thanks, It helped from both issues to setup it up on the M1 chip device.

ankitcharolia commented 11 months ago

@trmiller @koioannis @devravi @AsadSaleh kindly try this GO Version Manager: https://github.com/ankitcharolia/goenv