go - 由于导入错误,比赛检测器无法运行。端口运行时/竞赛:在任何 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)
解决方案
推荐阅读
- spring - 访问此资源需要 Spring JWT 完全身份验证/
- javascript - 如何使用 ChartJS 和 React-ChartJs-2 包装器在右侧获取带有图例的响应式图表
- android - 如何在自定义按钮中应用字母间距?
- dictionary - ansible json_query 以包含键值作为列表的字典
- windows - 从 Windows 客户端到多个服务器的多个 SSH 密钥
- javascript - 如果对象不存在,则用 0 填充对象数组
- java - Android 通知在更新后被静音
- java - 如何在 Spring Websocket 中为 @Header 值创建自定义转换器/反序列化器
- flutter - 我有一个像这个列表这样的地图列表
- javascript - 如果没有调用/应用/绑定,我可以说 IIFE 中的“this”关键字总是指向窗口/全局/未定义吗?