andreiz / php-zookeeper

A PHP extension for interfacing with Apache ZooKeeper
Other
449 stars 215 forks source link

Error while installing #63

Closed rafaelbecks closed 9 years ago

rafaelbecks commented 9 years ago

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?

Timandes commented 9 years ago

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.

rafaelbecks commented 9 years ago

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

Timandes commented 9 years ago

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.

rafaelbecks commented 9 years ago

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!

theofilos13 commented 6 years ago

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