VSCodeでGolangを実行する為の環境構築をしているのですが、4つの依存パッケージがインストールできなくて困っています
Googleで調べても、成功した例しか乗っておらず、どうしたらいいかわからない状態です
エラー文章
go.toolsGopath setting is not set. Using GOPATH /Users/ユーザー名/go
Installing 6 tools at /Users/ユーザー名/go/bin in module mode.
gocode
gotests
goplay
dlv
gocode-gomod
godef
Installing github.com/mdempsky/gocode FAILED
Installing github.com/cweill/gotests/... FAILED
Installing github.com/haya14busa/goplay/cmd/goplay FAILED
Installing github.com/go-delve/delve/cmd/dlv FAILED
Installing github.com/stamblerre/gocode FAILED
Installing github.com/rogpeppe/godef FAILED
6 tools failed to install
gocode:
Error: Command failed: /usr/local/go/bin/go get -v github.com/mdempsky/gocode
go: github.com/mdempsky/gocode upgrade => v0.0.0-20200405233807-4acdcbdea79d
go: finding module for package golang.org/x/tools/go/gcexportdata
go: found golang.org/x/tools/go/gcexportdata in golang.org/x/tools v0.0.0-20200430192856-2840dafb9ee1
runtime/cgo
runtime/cgo
ld: warning: ld: warning: ignoring file /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/lib/libSystem.tbd, file was built for unsupported file format ( 0x2D 0x2D 0x2D 0x20 0x21 0x74 0x61 0x70 0x69 0x2D 0x74 0x62 0x64 0x2D 0x76 0x33 ) which is not the architecture being linked (x86_64): /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/lib/libSystem.tbd
ignoring file /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/lib/libpthread.tbd, file was built for unsupported file format ( 0x2D 0x2D 0x2D 0x20 0x21 0x74 0x61 0x70 0x69 0x2D 0x74 0x62 0x64 0x2D 0x76 0x33 ) which is not the architecture being linked (x86_64): /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/lib/libpthread.tbd
Undefined symbols for architecture x86_64:
あなたの回答
tips
プレビュー