(1)在裝mcrypt插件時報錯,提示:mcrypt fatal error: 'php.h' file not found,
而後又仔細操做了一次在輸完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:
php
解決辦法:
sudo ln -s /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.9.sdk/usr/include /usr/includexcode
(2)執行./confiure是報錯app
xcrun: error: active developer path ("/Applications/Xcode.app/Contents/Developer") does not exist, use xcode-select to change插件
sudo xcode-select -switch /Applications/Xcode.app/Contents/Developercode