How to setup memcache in XAMPP, Mac OSX Lion. It was pretty simple in Leopard(using this link http://m-schmidt.eu/2010/03/30/develop-memcached-web-apps-with-xampp-under-mac-os-x/), but i installed fresh Lion and it seems that memcache is not installing.
I tried this one in https://gist.github.com/1301997 but no result!!
Can anyone suggest what to do.
This is what helped me with Mac OS X Mountain Lion, XAMPP 1.7.3 (Standard way with "pecl install" doesn't work because it compiles 64 bit extension while XAMPP is build in 32 bit mode)
(First sign you don't have this installed If you get this kind of warnings
... grep: /Applications/XAMPP/xamppfiles/include/php/php-5.3.1/php/main/php.h: No such file or directory grep: /Applications/XAMPP/xamppfiles/include/php/php-5.3.1/php/Zend/zend_modules.h: No such file or directory ...
)
File: /Applications/XAMPP/xamppfiles/lib/php/pear/PEAR/Builder.php Was: Line 323: // {{{ start of interactive part Line 324: $configure_command = "$dir/configure"; Line 325: $configure_options = $pkg->getConfigureOptions(); After modification: Line 323: // {{{ start of interactive part Line 324: $configure_command = "$dir/configure"; Line 325: $configure_command .= " CFLAGS='-arch i386' APXSLDFLAGS='-arch i386' "; Line 326: $configure_options = $pkg->getConfigureOptions();
cd /Applications/XAMPP/xamppfiles/bin sudo ./pecl install memcache
And voila! I have php memcache extension working! Have a nice day! :)
First install Xampp developer tools. Then
sudo /Applications/XAMPP/xamppfiles/bin/pecl install memcache
Also not that apache server restart is needed.
Or you can check this for full guide. http://wiki.cerb5.com/wiki/Setup:Development/XAMPP/Mac_OS_X
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With