Home >Backend Development >PHP Tutorial >PHP error when installing zookeeper extension
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
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/