Home >Backend Development >PHP Tutorial >PHP error when installing zookeeper extension

PHP error when installing zookeeper extension

WBOY
WBOYOriginal
2016-08-04 09:22:102130browse

An error is reported after executing 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

Reply content:

An error is reported after executing 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

I don’t know if it’s due to the version, but I just changed to zookeeper version 3.4.6 and it’s fine

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 extension
./configure --with-php-config=/usr/bin/php-config -with-libzookeeper-dir=/usr/local/ zookeeper/zookeeper-3.4.8/

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn