Slightly out of date
chrisjhill opened this issue · comments
If you are having these Apache errors:
Warning: PHP Startup: Unable to load dynamic library '/Applications/MAMP/bin/php/php5.3.14/lib/php/extensions/no-debug-non-zts-20090626/memcached.so' - dlopen(/Applications/MAMP/bin/php/php5.3.14/lib/php/extensions/no-debug-non-zts-20090626/memcached.so, 9): Library not loaded: /usr/local/lib/libmemcached.10.dylib
Referenced from: /Applications/MAMP/bin/php/php5.3.14/lib/php/extensions/no-debug-non-zts-20090626/memcached.so
Reason: image not found in Unknown on line 0
The reason is twofold:
- You need to set your dynamic library variable:
chris@floyd $ echo $DYLD_LIBRARY_PATH
chris@floyd $ export DYLD_LIBRARY_PATH=/usr/local/lib/
chris@floyd $ echo $DYLD_LIBRARY_PATH
/usr/local/lib/
- Homebrew now installs version 11 of libmemcached, not 10 as expected. After an hour of trying to get Memcached working with MAMP, frustratingly I just renamed /usr/local/lib/libmemcached.11.dylib to libmemcached.10.dylib instead of installing the older version (to see if that was indeed the error). Expecting the age-old XKCD comic raptor to come along and wipe me out, it actually worked.
I can recompile memcached extenstion with new version of libmemcached. Let me know.