delve 0.12.2 doesn麓t install with homebrew on osx

Created on 15 Apr 2017  路  5Comments  路  Source: go-delve/delve

  1. What version of Delve are you using (dlv version)?

delve 0.12.2

  1. What version of Go are you using? (go version)?
cwoehrle$ go version
go version go1.8 darwin/amd64
  1. What operating system and processor architecture are you using?
    osx, amd64

  2. 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

Most helpful comment

It still fails to install on a fully up-to-date Homebrew and macOS.

All 5 comments

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.

Was this page helpful?
0 / 5 - 0 ratings