Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I am trying to make memcache work on MAMP 1.9. In the process I have successfully installed memcached and tested it. But I can't find a way to install memcache.so on my MAMP. Any suggestions.

Thanks

share|improve this question

closed as off-topic by HopelessN00b, Ward, mdpc, Jim B, yagmoth555 Mar 21 at 19:55

This question appears to be off-topic. The users who voted to close gave this specific reason:

  • "Questions should demonstrate reasonable business information technology management practices. Questions that relate to unsupported hardware or software platforms or unmaintained environments may not be suitable for Server Fault - see the help center." – HopelessN00b, Ward, mdpc, Jim B, yagmoth555
If this question can be reworded to fit the rules in the help center, please edit the question.

up vote 1 down vote accepted

I had this same problem today. I tried installing the memcache module using PECL and it turns out that PECL is compiling the module to a 64bit architecture. You can check the architecture by:

file /Applications/MAMP/bin/php5.3/lib/php/extensions/no-debug-non-zts-20090626/memcache.so

My result (working) is now this:

/Applications/MAMP/bin/php5.3/lib/php/extensions/no-debug-non-zts-20090626/memcache.so: Mach-O universal binary with 2 architectures
/Applications/MAMP/bin/php5.3/lib/php/extensions/no-debug-non-zts-20090626/memcache.so (for architecture i386): Mach-O bundle i386
/Applications/MAMP/bin/php5.3/lib/php/extensions/no-debug-non-zts-20090626/memcache.so (for architecture x86_64):       Mach-O 64-bit bundle x86_64

Previously it was just:

/Applications/MAMP/bin/php5.3/lib/php/extensions/no-debug-non-zts-20090626/memcache.so (for architecture x86_64):       Mach-O 64-bit bundle x86_64

I followed the steps in Matthias Schmidt's blog. The tutorial is for XAMPP but it should be the same (more or less) with MAMP.

share|improve this answer
    
Thanks. Can't give you 1 up, I don;t have enough points. But your solution worked perfectly. – Gautam Jun 25 '10 at 4:00

Not the answer you're looking for? Browse other questions tagged or ask your own question.