Go覆盖安装遇到的问题

描述

原先是1.17版本的go,我想升级到1.19,就直接覆盖安装了,控制台输出也没问题,真好啊
然后我就去测试了一下,编译直接报错

# runtime/internal/sys
F:\go\src\runtime\internal\sys\consts.go:13:7: StackGuardMultiplier redeclared in this block
	F:\go\src\runtime\internal\sys\arch.go:27:7: other declaration of StackGuardMultiplier
F:\go\src\runtime\internal\sys\consts.go:16:7: DefaultPhysPageSize redeclared in this block
	F:\go\src\runtime\internal\sys\arch.go:36:7: other declaration of DefaultPhysPageSize
F:\go\src\runtime\internal\sys\consts.go:20:7: PCQuantum redeclared in this block
	F:\go\src\runtime\internal\sys\arch.go:40:7: other declaration of PCQuantum
F:\go\src\runtime\internal\sys\consts.go:23:7: Int64Align redeclared in this block
	F:\go\src\runtime\internal\sys\arch.go:43:7: other declaration of Int64Align
F:\go\src\runtime\internal\sys\consts.go:30:7: MinFrameSize redeclared in this block
	F:\go\src\runtime\internal\sys\arch.go:50:7: other declaration of MinFrameSize
F:\go\src\runtime\internal\sys\consts.go:34:7: StackAlign redeclared in this block
	F:\go\src\runtime\internal\sys\arch.go:54:7: other declaration of StackAlign
解决办法

删除整个go的安装目录重新安装,解决
重新安装时候,最好先 remove一遍,然后再来一下

  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值