简体   繁体   中英

(Mac OS X, XAMPP) + memcache -> no suitable image found

I have a issues installing memcache on my MacBook with OS X 10.8. I have installed memcachen. when i run memcache -h it get an answer. But when i call php -mi can't find it. When i execute phpinfo() and check the log afterwards i get the following log entry. Any idea?

PHP Warning: PHP Startup: Unable to load dynamic library '/Applications/XAMPP/xamppfiles/lib/php/php-5.3.1/extensions/no-debug-non-zts-20090626/memcache.so' - dlopen(/Applications/XAMPP/xamppfiles/lib/php/php-5.3.1/extensions/no-debug-non-zts-20090626/memcache.so, 9): no suitable image found. Did find:\\n\\t/Applications/XAMPP/xamppfiles/lib/php/php-5.3.1/extensions/no-debug-non-zts-20090626/memcache.so: mach-o, but wrong architecture in Unknown on line 0

Thanks for your help

Your xampp is 64Bit Software and memcache.so is 32 bit or vice versa! In any case this Version of memcache.so does simply not match to the xampp you do use. Xampp offers elder version in 32bit and newer ones in 64. You might try that or find a different Version of the lib.

If Sourcecode is available you might compile the lib on your system, this will help too.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM