andreiz / php-zookeeper

A PHP extension for interfacing with Apache ZooKeeper

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Error while installing

rafaelbecks opened this issue · comments

Hey people!

I'm following these instructions and I'm getting this error when running ./configure after phpize:

configure: error: Can't find zookeeper headers under "/usr/share/zookeeper"

I already verified that the path exists, and I also tried to install via pecl. That gives the same error (with other versions of the extension too).

How do I resolve this?

Make sure you have installed the Zookeeper C Client first.

发自我的 iPhone

在 2015年10月27日,上午5:24,Rafael Angel Becerra Blasco notifications@github.com 写道:

Hey people!

I'm following these instructions and I'm getting this error when running ./configure after phpize:

configure: error: Can't find zookeeper headers under "/usr/share/zookeeper"

I already verified that the path exists, and I also tried to install via pecl. That gives the same error (with other versions of the extension too).

How do I resolve this?


Reply to this email directly or view it on GitHub.

Do you mean this package? https://packages.debian.org/wheezy/zookeeperd . I installed zookeeper using

sudo apt-get install zookeeperd

I'm installing it just in order to use php-kafka

Try libzookeeper-mt-dev.

Timandes White

From: Rafael Angel Becerra Blasco
Date: 2015-10-27 09:53
To: andreiz/php-zookeeper
CC: Timandes White
Subject: Re: [php-zookeeper] Error while installing (#63)
Do you mean this package? https://packages.debian.org/wheezy/zookeeperd . I installed zookeeper using
sudo apt-get install zookeeperd
I'm installing it just in order to use php-kafka

Reply to this email directly or view it on GitHub.

Thanks a lot! , I installed that package, I could not build it from source (maybe I'm loosing something in the specification path) but I could installed it via pecl. So, it's done!

I thing /usr/ is fine, as it is showed bellow.
Usually zookeeper headers are on /usr/include/zookeeper

To enable zookeeper support, configure with --with-libzookeeper-dir=DIR . DIR is the install prefix of ZooKeeper C Binding, which must contain the include/zookeeper/zookeeper.h

http://php.net/manual/en/zookeeper.installation.php