运行pecl install yaml错误configure: error: \xe2\x80\x98yaml.h\xe2\x80\x99 header not found
brew install php@7.4我通过 Homebrew \n 和 libyaml安装了 PHP 7.4.14 brew install libyaml,但仍然看到同样的错误。
我还尝试重新安装 xcode 开发工具,以及使用 sudo 运行 pecl,但每次仍然出现相同的错误。下面是 pecl 的完整输出。
\nStarting to download yaml-2.2.1.tgz (40,977 bytes)\n............done: 40,977 bytes\n8 source files, building\nrunning: phpize\nConfiguring for:\nPHP Api Version: 20190902\nZend Module Api No: 20190902\nZend Extension Api No: 320190902\nPlease provide the prefix of libyaml installation [autodetect] :\nbuilding in /private/tmp/pear/temp/pear-build-mattfergusonRvLour/yaml-2.2.1\nrunning: /private/tmp/pear/temp/yaml/configure --with-php-config=/usr/local/opt/php@7.4/bin/php-config --with-yaml\nchecking for grep that handles long lines and …Run Code Online (Sandbox Code Playgroud)