且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

在MacOs Mojave上安装xdebug-找不到'php.h'文件

更新时间:2023-01-14 22:46:13

我在尝试在系统上编译xdebug时遇到了这种情况,我必须执行以下操作才能使其正常工作

I ran into this trying to compile xdebug on my system, I had to do the following to get it to work

1)(重新)安装命令行工具(我曾经安装过它们,但是/Library/Developer/CommandLineTools/下的文件丢失了,所以我必须将其删除...)

1) (Re)install the command line tools (I had installed them at one point, but the files under /Library/Developer/CommandLineTools/ were missing so I must have deleted it...)

xcode-select --install

2)重新安装头文件

sudo installer -pkg /Library/Developer/CommandLineTools/Packages/macOS_SDK_headers_for_macOS_10.14.pkg -target /

贷记到@donatJ- https://***.com/a/52612102/649915

Credit to @donatJ - https://***.com/a/52612102/649915