Skip to content
This repository has been archived by the owner on Sep 15, 2020. It is now read-only.

Can't install on macOS High Sierra #757

Open
DChiuch opened this issue Jun 18, 2018 · 2 comments
Open

Can't install on macOS High Sierra #757

DChiuch opened this issue Jun 18, 2018 · 2 comments

Comments

@DChiuch
Copy link

DChiuch commented Jun 18, 2018

"make" is failing at this point:

# github.com/shirou/gopsutil/mem
In file included from ../../shirou/gopsutil/mem/mem_darwin_cgo.go:7:
In file included from /usr/include/mach/mach_host.h:6:
In file included from /usr/local/include/string.h:25:
/usr/local/include/plist/Node.h:26:10: fatal error: 'cstddef' file not found
#include <cstddef>
         ^~~~~~~~~
1 error generated.
# github.com/shirou/gopsutil/cpu
In file included from ../../shirou/gopsutil/cpu/cpu_darwin_cgo.go:11:
In file included from /usr/include/mach/mach_host.h:6:
In file included from /usr/local/include/string.h:25:
/usr/local/include/plist/Node.h:26:10: fatal error: 'cstddef' file not found
#include <cstddef>
         ^~~~~~~~~
1 error generated.
make: *** [all] Error 2
@zyfdegh
Copy link

zyfdegh commented Jun 20, 2018

I got another error on macOS

$ make                                                                                               
go get -u github.com/whyrusleeping/gx
go get -u github.com/whyrusleeping/gx-go
gx-go get github.com/holochain/holochain-proto
# cd /Users/ferdi/GOPATH/src/github.com/nats-io/nuid; git show-ref
package github.com/nats-io/nuid: exit status 1


[done] [fetch]   go-libp2p                     QmefgzMbKZYsmHFkLqxgaTBG9ypeEjrdWRD5WXH4j1cWDL 2.072s
[done] [fetch]   go-multihash                  QmU9a9NV9RdPNwZQDYd5uKsm6N6LJLSvLbywDDYFbaaC6P 1.475s
[done] [fetch]   go-multiaddr-net              QmX3U3YXCQ6UYBxq2LVWF8dARS1hPUTEYLrSx654Qyxyw6 945ms
......
[done] [install] go-libp2p                     QmefgzMbKZYsmHFkLqxgaTBG9ypeEjrdWRD5WXH4j1cWDL 56ms
go get . 8] 59s
../../nats-io/nats/nats.go:38:2: no Go files in /Users/ferdi/GOPATH/src/github.com/nats-io/nuid
make: *** [all] Error 1

It seems there's something wrong with package nats-io/nats.

@zyfdegh
Copy link

zyfdegh commented Jun 20, 2018

We need to track the dependencies in vendor, because using go get to retrieve the packages can cause the above issue.

Fixed by removing $GOPATH/src/github.com/nats-io/nuid manually and go get it again.

rm -r $GOPATH/src/github.com/nats-io/nuid
go get github.com/nats-io/nuid

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants