No such file or directory: zookeeper.h for zookeeper built with homebrew

Bug #1182256 reported by Karan
6
This bug affects 1 person
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/Cellar/zookeeper/3.4.4/include/zookeeper/zookeeper.h

But building the package errors out at:
../../../launchpad.net/gozk/helpers.c:3 6c: No such file or directory: zookeeper.h

I tried symlinking from /usr/include/zookeeper.h -> /usr/local/Cellar/zookeeper/3.4.4/include/zookeeper/zookeeper.h
Failed

Symlinking from /usr/include/zookeeper/ -> /usr/local/Cellar/zookeeper/3.4.4/include/zookeeper
Failed

Including /usr/local/Cellar/zookeeper/ in the PATH variable.
Failed

Incliding /usr/local/Cellar/zookeeper/ in the LD_LIBRARY_PATH variable.
Failed.

Revision history for this message
Tarrant Rollins (tarrant-8) wrote :

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/libzookeeper_mt.a' go get launchpad.net/gozk

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.