0

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

完成以下步骤后:

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

  2. gomobile init

我收到以下错误

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
4

1 回答 1

0

我通过将我的 go 版本升级到 1.9.2 来修复它。看来 OS sierra 至少需要 go1.7.4 或更高版本。——</p>

于 2017-12-25T15:22:41.110 回答