gpt4 book ai didi

go - 在 mac OS Sierra 10.12 上安装 gomobile

转载 作者:数据小太阳 更新时间:2023-10-29 03:23:47 64 4
gpt4 key购买 nike

我正在尝试在 mac OS Sierra 10.12 上安装 gomobile。我已经安装了 go 版本 1.7.1。

完成下面给出的步骤后:

  1. go get golang.org/x/mobile/cmd/gomobile

  2. 移动初始化

我得到以下错误

gomobile: go install -pkgdir=/usr/local/mobgo/pkg/gomobile/pkg_darwin_arm std failed: exit status 2
# internal/poll
../go/src/internal/poll/fd_mutex.go:194:6: missing function body
../go/src/internal/poll/fd_mutex.go:195:6: missing function body
../go/src/internal/poll/fd_poll_runtime.go:17:6: missing function body
../go/src/internal/poll/fd_poll_runtime.go:19:6: missing function body
../go/src/internal/poll/fd_poll_runtime.go:20:6: missing function body
../go/src/internal/poll/fd_poll_runtime.go:21:6: missing function body
../go/src/internal/poll/fd_poll_runtime.go:22:6: missing function body
../go/src/internal/poll/fd_poll_runtime.go:23:6: missing function body
../go/src/internal/poll/fd_poll_runtime.go:24:6: missing function body
../go/src/internal/poll/fd_poll_runtime.go:25:6: missing function body
../go/src/internal/poll/fd_poll_runtime.go:25:6: too many errors

最佳答案

我通过将我的 go 版本升级到 1.9.2 来修复它。似乎 OS sierra 至少需要 go1.7.4 或更高版本。 –

关于go - 在 mac OS Sierra 10.12 上安装 gomobile,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/47962432/

64 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com