Mac OS X 上使用 MAMP 和 PHP 5.3 的 Memcache
我想将 PHP Memcache 扩展安装到我的 MAMP 服务器(v1.9.1 和 PHP 5.3.2)。为此,我按照此处的安装说明中的步骤操作: http ://www.lullabot.com/articles/setup-memcached-mamp-sandbox-environment
运行 ./pecl i memcache
时会导致错误:
./pecl:第 28 行:/Applications/MAMP/bin/php5.3/bin/php:权限被拒绝
./pecl:第 28 行:执行:/Applications/MAMP/bin/php5.3/bin/php:无法执行:未知错误:0
运行 sudo ./pecl i memcache
也不起作用。您是否也遇到过同样的麻烦,您是如何解决的?
我还没有安装 Xcode,还是应该安装?
此致, 吉姆
I would like to install the PHP Memcache extension to my MAMP server (v1.9.1 with PHP 5.3.2). To do this I've followed the steps in the installation instruction here: http://www.lullabot.com/articles/setup-memcached-mamp-sandbox-environment
When running ./pecl i memcache
it results in an error:
./pecl: line 28: /Applications/MAMP/bin/php5.3/bin/php: Permission denied
./pecl: line 28: exec: /Applications/MAMP/bin/php5.3/bin/php: cannot execute: Unknown error: 0
Running sudo ./pecl i memcache
doesn't work, too. Did you have the same trouble and how did you solve it?
I have not installed Xcode, or should I do?
Best Regards,
Jim
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
如果你还没有安装Xcode,那么你就无法编译c程序。更具体地说,您需要从 Xcode 安装 Unix 开发工具包。我现在正在做的事情。我安装了 Xcode,但没有安装 Unix 开发工具。
我按照此处的说明安装 memcache 和 PHP。
http://www.glenscott.co.uk/blog/2009/08/30/install-memcached-php-extension-on-os-x-snow-leopard/
If you haven't installed Xcode, then you can't compile c programs. More specifically, you need to install the Unix development tools package from Xcode. Which I am actually do at this moment. I had Xcode installed, but not the Unix development tools.
I'm following the instructions from here to install memcache and PHP.
http://www.glenscott.co.uk/blog/2009/08/30/install-memcached-php-extension-on-os-x-snow-leopard/
现在对我有帮助的是这个 GitHub 项目: https://github.com/majksner/php-memcached -mamp
在其自述文件中,您可以找到有关依赖项的说明,可以使用自制程序安装这些依赖项。
Right now what helped me was this GitHub project: https://github.com/majksner/php-memcached-mamp
In its README you can find instructions about dependencies, which can be installed using homebrew.