小编Kyl*_*son的帖子

无法在 Mac Big Sur 上安装 PHP yaml 扩展

运行pecl install yaml错误configure: error: \xe2\x80\x98yaml.h\xe2\x80\x99 header not found

\n

brew install php@7.4我通过 Homebrew \n 和 libyaml安装了 PHP 7.4.14 brew install libyaml,但仍然看到同样的错误。

\n

我还尝试重新安装 xcode 开发工具,以及使用 sudo 运行 pecl,但每次仍然出现相同的错误。下面是 pecl 的完整输出。

\n
Starting 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)

php c macos homebrew yaml

9
推荐指数
1
解决办法
4892
查看次数

标签 统计

c ×1

homebrew ×1

macos ×1

php ×1

yaml ×1