• 首页 首页 icon
  • 工具库 工具库 icon
    • IP查询 IP查询 icon
  • 内容库 内容库 icon
    • 快讯库 快讯库 icon
    • 精品库 精品库 icon
    • 问答库 问答库 icon
  • 更多 更多 icon
    • 服务条款 服务条款 icon

Go覆盖安装遇到的问题

武飞扬头像
e5pool
帮助1

描述

原先是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一遍,然后再来一下

这篇好文章是转载于:学新通技术网

  • 版权申明: 本站部分内容来自互联网,仅供学习及演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,请提供相关证据及您的身份证明,我们将在收到邮件后48小时内删除。
  • 本站站名: 学新通技术网
  • 本文地址: /boutique/detail/tanhgfhkia
系列文章
更多 icon
同类精品
更多 icon
继续加载