今天升級到 mac os x 10.9 Mavericks,結果之前裝的opencc又不能跑了,再來檢查一次,問題和之前的不一樣,只好紀錄下來:
1.執行phpize時,出現:
$ 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:
解法:這要先執行底下一個指令,安裝xcode的東東:
$ xcode-select --install
2.執行 ./configure 時,又出現問題了,檢查 config.log 裡頭的資訊,發現:
You have not agreed to the Xcode license agreements, please run 'xcodebuild -license' (for user-level acceptance) or 'sudo xcodebuild -license' (for system-wide acceptance) from within a Terminal window to review and agree to the Xcode license agreements.
所以我直接執行:$ sudo xcodebuild -license,然後輸入“q”,再輸入“agree”
就以上2個問題,之後就照之前步驟,安裝成功了。
0 意見:
張貼留言