首页 > 解决方案 > 在 MacOS 上配置 gearman php 扩展失败 - 错误:未知类型名称“zend_object_value”

问题描述

我尝试使用此指令在 MacOS 上安装 Gearman PHP Extension for php 7.4:

tar xzf gearman-X.Y.tgz
cd gearman-X.Y
phpize
./configure
make
make install

并在 ./configure 处出错

dev/gearman/gearman-1.1.2/php_gearman.c:1011:2: error: unknown type name 'zend_object_value'

标签: phpgearman

解决方案


似乎需要使用原始版本的php-configure。对于我的情况:

./configure --with-php-config=/usr/local/Cellar/php/7.4.10/bin/php-config

解决问题


推荐阅读