gpt4 book ai didi

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

转载 作者:IT王子 更新时间:2023-10-29 00:14:08 27 4
gpt4 key购买 nike

我尝试在 MacOs Mojave 上安装 xdebug 但出现此错误

/private/tmp/pear/install/xdebug/xdebug.c:25:10: fatal error: 'php.h' file not found

已安装命令行工具。

最佳答案

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

0) 检查您的系统上是否有文件/Library/Developer/CommandLineTools/Packages/macOS_SDK_headers_for_macOS_10.14.pkg。

1) 如果没有,安装命令行工具(我曾经安装过它们,但是/Library/Developer/CommandLineTools/下的文件丢失了所以我一定是删除了它......)

xcode-select --install

2) 重新安装头文件

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

感谢@donatJ - https://stackoverflow.com/a/52612102/649915

关于php - 在 MacOs Mojave 上安装 xdebug - 找不到 'php.h' 文件,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/52623108/

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com