dqxmf02844
dqxmf02844
2015-10-26 21:11

设置zookeeper php扩展以安装kafka-php时出错

已采纳

I have an issue while installing kafka-php. The zookeeper php extension is a dependency that I need to manage clusters.

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?

  • 点赞
  • 写回答
  • 关注问题
  • 收藏
  • 复制链接分享
  • 邀请回答

2条回答

  • dqq46733 dqq46733 6年前

    After looking, I could find a solution. I just needed to install some dev-packages to have the missing headers of the C client.

    Here you can see the details

    点赞 评论 复制链接分享
  • duanouyong4228 duanouyong4228 3年前

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

    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

    点赞 评论 复制链接分享