首页 > 解决方案 > 由于导入错误,比赛检测器无法运行。端口运行时/竞赛:在任何 GOROOT 或 GOPATH 中都找不到包“运行时/竞赛”

问题描述

我的操作系统是 ubuntu18.04。
我的编译器是 gccgo。
GOROOT 是 /usr/local/go
它报告为:
package testmain imports runtime/race:在以下任何一个中都找不到包“runtime/race”:
/usr/local/go/src/runtime/race(来自 $GOROOT)
/ home/lzx/tiny_distributed_system/src/runtime/race(来自 $GOPATH)

标签: gogccgo

解决方案


推荐阅读