Delve: fatal error: 'sys/types.h' file not found by os x brew install

Created on 26 May 2016  路  2Comments  路  Source: go-delve/delve

  1. What version of Delve are you using (dlv version)?
    0.11.0-alpha.
  2. What version of Go are you using? (go version)?
    go version go1.6.2 darwin/amd64
  3. What operating system and processor architecture are you using?
    OS X EI Capitan 10.11.5
    Darwin Kernel Version 15.5.0: Tue Apr 19 18:36:36 PDT 2016; root:xnu-3248.50.21~8/RELEASE_X86_64 x86_64
  4. What did you do?
    brew install go-delve/delve/delve
  5. What did you expect to see?
  6. What did you see instead?
go build -ldflags="-s -X main.Build=v0.11.0" github.com/derekparker/delve/cmd/dlv
# github.com/derekparker/delve/proc
clang: warning: no such sysroot directory: ''
In file included from src/github.com/derekparker/delve/proc/proc_darwin.go:3:
./proc_darwin.h:1:10: fatal error: 'sys/types.h' file not found
#include <sys/types.h>
         ^
1 error generated.
make: *** [build] Error 2
arebuilding kinbug omacOS

All 2 comments

@zenyue Can you try running xcode-select --install and see if this resolves your issue?

Thank you! the problem is solved.
Run xcode-select --install will update the command line tools for xcode.
After updated run brew install go-delve/delve/delve succeed.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

primalmotion picture primalmotion  路  3Comments

runningbar picture runningbar  路  4Comments

luminacious picture luminacious  路  5Comments

wusendong picture wusendong  路  5Comments

itzg picture itzg  路  5Comments