我正在试图在MCUMgr上安装MACos。下面是mcumgr:https://docs.zephyrproject.org/latest/services/device_mgmt/mcumgr.html的链接
我安装Go编程语言并输入以下命令:
go install github.com/apache/mynewt-mcumgr-cli/mcumgr@latest执行此操作后,我将得到以下错误:
go/pkg/mod/golang.org/x/sys@v0.0.0-20200223170610-d5e6a3e2c0ae/unix/zsyscall_darwin_amd64.go:28:3: //go:linkname must refer to declared function or variable然后我在堆栈溢出中搜索并找到了以下内容:Go 1.18 build error on Mac: "unix/syscall_darwin.1_13.go:25:3: //go:linkname must refer to declared function or variable"
这给了我以下错误:
go: golang.org/x/sys: unrecognized import path "golang.org/x": parse https://golang.org/x?go-get=1: no go-import meta tags ()我现在被困在如何为MACos安装MACos的问题上了,我想知道以前是否有人遇到过同样的问题?
发布于 2022-05-01 22:28:32
我使用go 1.17代替,并使用:
go get github.com/apache/mynewt-mcumgr-cli/mcumgr然后进入安装它的bin文件夹,使用sudo ./mcumgr运行。
https://stackoverflow.com/questions/72058322
复制相似问题