执行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/
本文原创发布php中文网,转载请注明出处,感谢您的尊重!