No such file or directory: zookeeper.h for zookeeper built with homebrew
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
gozk |
New
|
Undecided
|
Unassigned |
Bug Description
I have installed zookeeper with the the command
brew install zookeeper --c --python
It installs zookeeper 3.4.4 and the zookeeper.h is located at:
/usr/local/
But building the package errors out at:
../../.
I tried symlinking from /usr/include/
Failed
Symlinking from /usr/include/
Failed
Including /usr/local/
Failed
Incliding /usr/local/
Failed.
This can be fixed by setting CGO and LD_FLAGS at when you run go {get,build, install} :
CGO_ CFLAGS= '-I/usr/ local/include/ zookeeper' CGO_LDFLAGS= '/usr/local/ lib/libzookeepe r_mt.a' go get launchpad.net/gozk