首页  >  文章  >  后端开发  >  php 安装zookeeper扩展报错

php 安装zookeeper扩展报错

WBOY
WBOY原创
2016-08-04 09:22:102085浏览

执行php -m | grep zookeeper后报错
PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib64/php/modules/zookeeper.so' - libzookeeper_mt.so.2: cannot open shared object file: No such file or directory in Unknown on line 0

回复内容:

执行php -m | grep zookeeper后报错
PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib64/php/modules/zookeeper.so' - libzookeeper_mt.so.2: cannot open shared object file: No such file or directory in Unknown on line 0

不知道是不是版本原因,换了3.4.6版的zookeeper就可以了

http://mirror.bit.edu.cn/apache/zookeeper/zookeeper-3.4.8/zookeeper-3.4.8.tar.gz
/root/zookeeper-3.4.8/src/c
./configure -prefix=/usr/local/zookeeper/zookeeper-3.4.8/
php扩展
./configure --with-php-config=/usr/bin/php-config -with-libzookeeper-dir=/usr/local/zookeeper/zookeeper-3.4.8/

声明:
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系admin@php.cn