Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Slightly out of date #6

Closed
chrisjhill opened this issue Jan 10, 2013 · 1 comment
Closed

Slightly out of date #6

chrisjhill opened this issue Jan 10, 2013 · 1 comment

Comments

@chrisjhill
Copy link

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:

  1. 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/

  1. 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.
@majksner
Copy link
Owner

I can recompile memcached extenstion with new version of libmemcached. Let me know.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants