tar*_*que 5 php xampp macos memcached osx-lion
如何在XAMPP,Mac OSX Lion中设置memcache.在Leopard中非常简单(使用此链接http://m-schmidt.eu/2010/03/30/develop-memcached-web-apps-with-xampp-under-mac-os-x/),但我安装了新鲜的Lion,似乎memcache没有安装.
我在https://gist.github.com/1301997尝试了这个,但没有结果!!
任何人都可以建议做什么.
这是帮助我使用Mac OS X Mountain Lion,XAMPP 1.7.3(带有" pecl install "的标准方法不起作用,因为它编译64位扩展而XAMPP以32位模式构建)
(首先签名你没有安装这个如果你得到这种警告
...
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
瞧!我有php memcache扩展工作!祝你今天愉快!:)
小智 4
首先安装Xampp开发者工具。然后
sudo /Applications/XAMPP/xamppfiles/bin/pecl install memcache
Run Code Online (Sandbox Code Playgroud)
也不需要重新启动 apache 服务器。
或者您可以查看完整指南。 http://wiki.cerb5.com/wiki/Setup:Development/XAMPP/Mac_OS_X
| 归档时间: |
|
| 查看次数: |
6865 次 |
| 最近记录: |