Unable to use PHPIZE after update to MacOS Mojave

前端 未结 4 2193
醉酒成梦
醉酒成梦 2020-12-05 07:23

What i should do when i run PHPIZE and get the error below ? I already installed xcode command line tools.

grep: /usr/include/php/main/php.h: No         


        
4条回答
  •  陌清茗
    陌清茗 (楼主)
    2020-12-05 07:56

    For some reason, I found Xcode command line tools was not installed completely on my Mac, Finally I solved this problem as follow:

     1. xcode-select --install
     2. cd /Library/Developer/CommandLineTools/Packages/ 
     3. open macOS_SDK_headers_for_macOS_10.14.pkg
    

    Note: After doing step2, if there is no .pkg file in the dir. maybe this solution will not help you.

提交回复
热议问题