linux - Unable to load dynamic library '/opt/lampp/lib/php/extensions/no-debug-non-zts-20090626/mongo.so -


i new mongodb. installed mongodb on our development (linux) server:

i got mongodb work on console , load , save data, when wanted install php driver , altered php.ini got error: unable load dynamic library '/opt/lampp/lib/php/extensions/no-debug-non-zts-20090626/mongo.so

i searched internet , find 32bit , 64bit differences between php , file far know computer installed on 32bit on 32bit far know.

i installed driver using pecl install mongo

also tried pecl download mongo phpize , set -m32 found somewhere on internet, make , still didn't work.

below more info might need in order able me out here.

uname -m i686

file /opt/lampp/bin/php-5.3.5 /opt/lampp/bin/php-5.3.5: elf 32-bit lsb executable, intel 80386, version 1 (sysv), dynamically linked (uses shared libs), gnu/linux 2.2.0, stripped

file /opt/lampp/lib/php/extensions/no-debug-non-zts-20090626/mongo.so /opt/lampp/lib/php/extensions/no-debug-non-zts-20090626/mongo.so: elf 32-bit lsb shared object, intel 80386, version 1 (sysv), dynamically linked, not stripped

phpize --version configuring for: php api version: 20100412 zend module api no: 20100525 zend extension api no: 220100525

hope knows how work. i'm not quite linux guru, know way around bit please tell me exact steps follow...

-mac-

-- tried bradly henk method on page: http://us2.php.net/manual/en/mongo.installation.php didn't work either

just upgraded 1.4.3 1.4.4 using pecl upgrade mongo. didn't solve problem. php version installed = 5.3.5 (lampp) , mongo version installed = mongodb shell version: 2.4.6 1.4.4 version of php driver should work php version: php 5.2.6 or newer, again 1.4.3 version should have worked on 5.2.6 or newer

/opt/lampp/lib/php/extensions/no-debug-non-zts-20090626/mongo.so

phpize --version configuring for: php api version: 20100412 zend module api no: 20100525 zend extension api no: 220100525 

note difference in api number here.

you seem have multiple installations of php on system. need use pecl (and phpize) tools match php version want load module under.

i suspect you'll find correct pecl binary under /opt/lampp/bin/pecl


Comments

Popular posts from this blog

c# - How Configure Devart dotConnect for SQLite Code First? -

java - Copying object fields -

c++ - Clear the memory after returning a vector in a function -