dongpu6141 2019-01-27 19:42
浏览 46
已采纳

转到构建错误:转到工具:没有此类工具“链接”

After command:

  go build

It shows an error:

 go tool: no such tool "link"

Details: my system is windows 10 -> 64 bits

go version: 1.11.5 
go env -> 
set GOARCH=386
set GOBIN=
set GOCACHE=c:\users\john\AppData\Local\go-build
set GOEXE=.exe
set GOFLAGS=
set GOHOSTARCH=386
set GOHOSTOS=windows
set GOOS=windows
set GOPATH=E:\codigo
set GOPROXY=
set GORACE=
set GOROOT=C:\Go
set GOTMPDIR=
set GOTOOLDIR=C:\Go\pkg\tool\windows_386
set GCCGO=gccgo
set GO386=sse2
set CC=gcc
set CXX=g++
set CGO_ENABLED=1
set GOMOD=
set CGO_CPFLAGS=-g -02
set CGO_CPPFLAGS=
set CGO_CXXFLAGS=-g -02
set CGO_FFLAGS=-g -02
set CGO_LDFLAGS=-g -02
set PKG_CONFIG=pkg-config
set GOGCCFLAGS=-m32 -mtherads -fno-caret-diagnotics -Qunused-arguments -fmsessage-length=0 -fdebug-prefix-map=C:\USers\john\ApddData\Local\temp\go-build126731998=/tmp/go-build -gno-record-gcc-switches

I' not pretty sure what could be happening because this is the first time it happends to me, I just change my operating system(before was windows 7) and updated to windows 10 with all the recently updates.After that I install go and when I try to build my code, it shows the error

  • 写回答

1条回答 默认 最新

  • dongrang9300 2019-01-27 20:32
    关注

    It turns out I downloaded go for 32 bits, but my machine is 64 bits, so I just download go for 64 bits and it worked

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论

报告相同问题?

悬赏问题

  • ¥15 求帮我调试一下freefem代码
  • ¥15 R语言Rstudio突然无法启动
  • ¥15 关于#matlab#的问题:提取2个图像的变量作为另外一个图像像元的移动量,计算新的位置创建新的图像并提取第二个图像的变量到新的图像
  • ¥15 改算法,照着压缩包里边,参考其他代码封装的格式 写到main函数里
  • ¥15 用windows做服务的同志有吗
  • ¥60 求一个简单的网页(标签-安全|关键词-上传)
  • ¥35 lstm时间序列共享单车预测,loss值优化,参数优化算法
  • ¥15 Python中的request,如何使用ssr节点,通过代理requests网页。本人在泰国,需要用大陆ip才能玩网页游戏,合法合规。
  • ¥100 为什么这个恒流源电路不能恒流?
  • ¥15 有偿求跨组件数据流路径图