在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'

解决方法

似乎需要使用原始版本的php-configure。 就我而言:

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

解决问题

相关问答

Selenium Web驱动程序和Java。元素在(x,y)点处不可单击。其...
Python-如何使用点“。” 访问字典成员?
Java 字符串是不可变的。到底是什么意思?
Java中的“ final”关键字如何工作?(我仍然可以修改对象。...
“loop:”在Java代码中。这是什么,为什么要编译?
java.lang.ClassNotFoundException:sun.jdbc.odbc.JdbcOdbc...