g icon indicating copy to clipboard operation
g copied to clipboard

如何安装arm64版本,目前安装的是 386版本

Open bigfool-cn opened this issue 3 years ago • 3 comments

bigfool-cn avatar Apr 30 '22 05:04 bigfool-cn

你提供的信息太少,无法做出有效的判断。什么操作系统?什么硬件架构?如何安装的,手动还是自动?安装指安装的什么,指安装 g ,还是指的安装 go ?

voidint avatar May 01 '22 03:05 voidint

I go into this issue too.

I am a Windows 10 64bit OS with Intel i7-8700 CPU.

>g use 1.17.11
go version go1.17.11 windows/386

@voidint

liaodalin19903 avatar Jul 12 '22 10:07 liaodalin19903

I go into this issue too.

I am a Windows 10 64bit OS with Intel i7-8700 CPU.

>g use 1.17.11
go version go1.17.11 windows/386

@voidint

原因分析

g install 命令是根据 runtine.GOARCH 推测你的CPU架构的,所以可能是安装的g为386版本 可以查看 ~/.g/downloads/go1.17.11.windows-386.tar.gz 是否存在来大致推断

修复方法

  1. 重新下载 g, 并替换现有的可执行文件
  2. 删除 ~/.g/versions
  3. 运行 g install 1.17.11

akayj avatar Jun 09 '23 05:06 akayj