mac10.9自带php和apache,安装memcache扩展用phpize的问题

mac10.9自带php和apache,安装memcache扩展用phpize的报错
grep: /usr/include/php/main/php.h: No such file or directory
grep: /usr/include/php/Zend/zend_modules.h: No such file or directory
grep: /usr/include/php/Zend/zend_extensions.h: No such file or directory
Configuring for:
PHP Api Version:
Zend Module Api No:
Zend Extension Api No:
Cannot find autoconf. Please check your autoconf installation and the
$PHP_AUTOCONF environment variable. Then, rerun this script.
网上说的
sudo ln -s /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.9.sdk/usr/include /usr/include
是不是必须要安装xcode

明显就是缺少 autoconf 库, Cannot find autoconf!

    解决自动安装库的问题,可以安装 homebrew,没用过百度下!

    使用 brew install autoconf  安装这库,接着执行,缺少什么就用 brew命令安装什么!

追问

我今天把osx从10.9升级到了10.11 然后用brew 安装的autoconf 还是成功,和没有安装一样的效果, 用brew安装的memcached安装成功之后 memcached的命令都用不了了。好像感觉升到10.11之后brew安装的东西都不管用。。。

温馨提示:答案为网友推荐,仅供参考

相关了解……

你可能感兴趣的内容

本站内容来自于网友发表,不代表本站立场,仅表示其个人看法,不对其真实性、正确性、有效性作任何的担保
相关事宜请发邮件给我们
© 非常风气网