問題:
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.
解決方法:
1.重啟mac電腦,同時按住command+R ,等出現進度條了再松開
2.彈出的界面是否有“實用工具”,有的話就打開實用工具里面的終端,輸入:csrutil disable,然后回車
3.重新啟動電腦。
4.去/usr目錄下,(目錄根據你自己電腦上的目錄來)執行:sudo ln -s /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.12.sdk/usr/include/ /usr
5.你再去嘗試執行phpize就OK了
哈哈,容許我笑5秒鍾,問題解決了真爽
