dlv version)?delve 0.12.2
go version)?cwoehrle$ go version
go version go1.8 darwin/amd64
What operating system and processor architecture are you using?
osx, amd64
What did you do?
cwoehrle$ brew install go-delve/delve/delve
Updating Homebrew...
==> Auto-updated Homebrew!
Updated 2 taps (caskroom/cask, homebrew/core).
==> Updated Formulae
youtube-dl
==> Installing delve from go-delve/delve
==> Downloading https://github.com/derekparker/delve/archive/v0.12.2.tar.gz
Already downloaded: /Users/cwoehrle/Library/Caches/Homebrew/delve-0.12.2.tar.gz
==> dlv-cert is already installed, no need to create it
==> make build BUILD_SHA=v0.12.2
Last 15 lines from /Users/cwoehrle/Library/Logs/Homebrew/delve/01.make:
2017-04-15 07:22:53 +0200
make
build
BUILD_SHA=v0.12.2
go build -ldflags="-s -X main.Build=v0.12.2" github.com/derekparker/delve/cmd/dlv
# github.com/derekparker/delve/pkg/proc
src/github.com/derekparker/delve/pkg/proc/threads.go:24: undefined: WaitStatus
src/github.com/derekparker/delve/pkg/proc/threads.go:32: undefined: OSSpecificDetails
make: *** [build] Error 2
If reporting this issue please do so at (not Homebrew/brew or Homebrew/core):
https://github.com/go-delve/homebrew-delve/issues
You need a C compiler:
xcode-select --install
the c compiler was already installed with the mentioned command ( a few days ago).
Trying to install it again leads to that
cwoehrle$ xcode-select --install
xcode-select: error: command line tools are already installed, use "Software Update" to install updates
Then for some reason your go install is configured not to use it. Try go env it should tell you CGO_ENABLED=1.
that麓s it, it works with CGO_ENABLED=1.
thank you very much!
It still fails to install on a fully up-to-date Homebrew and macOS.
Most helpful comment
It still fails to install on a fully up-to-date Homebrew and macOS.