How to setup memcache, in XAMPP mac osx lion
2015-03-27 17:57
337 查看
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)
I've got memcached server with Xcode
I downloaded and installed XAMPP Developer Package from http://www.apachefriends.org/en/xampp-macosx.html
(First sign you don't have this installed If you get this kind of warnings
)
Instead of manually building memcache extension I've modified PEAR installer by
adding line that configures build script with 32 bit architecture flags:
Then from terminal I executed this:
Restarted Apache server
And voila! I have php memcache extension working! Have a nice day! :)
First install Xampp developer tools. Then
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
转载:http://stackoverflow.com/questions/9744185/how-to-setup-memcache-in-xampp-mac-osx-lion
while XAMPP is build in 32 bit mode)
I've got memcached server with Xcode
I downloaded and installed XAMPP Developer Package from http://www.apachefriends.org/en/xampp-macosx.html
(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 ...
)
Instead of manually building memcache extension I've modified PEAR installer by
adding line that configures build script with 32 bit architecture flags:
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();
Then from terminal I executed this:
cd /Applications/XAMPP/xamppfiles/bin sudo ./pecl install memcache
Restarted Apache server
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
转载:http://stackoverflow.com/questions/9744185/how-to-setup-memcache-in-xampp-mac-osx-lion
相关文章推荐
- HOW TO SET UP ADB (ANDROID DEBUG BRIDGE) IN MAC OSX
- How to set a MySQL root user password in MAC OSX
- How To Install Jekyll in Mac OSX Mavericks?
- How to enable the root user in Mac OS X Lion
- How to setup multiple sites hosted on your Mac with OSX 10.8 + (MAMP Part 5)
- How to Install mcrypt for php on Mac OSX Lion 10.8 & 10.7 Development Server
- How to use Oracle Instant Client in Mac OS X Lion
- How to uninstall CUDA driver and toolkit in Mac OS X?
- How to change MAC address in windows 7
- How to setup django, python environment in ubuntu
- How can I install Easy_Install for Python 2.6.4 in Mac OSX 10.4.11【转】
- [CakePHP]How to use Session in conjunction with Memcache
- How to use Wise SetupCapture in the Wise Packager for Deployment Server to create an MSI
- How to setup tomcat in linux?
- How to setup java remote debugging in eclipse
- Copy file or folder path to the clipboard in Mac OS X Lion
- How to setup VVR in VCS , including the FireDrill.
- How to Setup Alerts in Dynamics Ax 4.0 & 2009
- How To Setup And Check MO / MOAC Setups In a R12 APPS Instance - Precedence of MO / MOAC Profile Options [ID 745420.1]