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安装的东西都不管用。。。