configure gearman php extension fail on MacOS - error: unknown type name 'zend_object_value'

345 Views Asked by At

I tried to use this instruction to install Gearman PHP Extension for php 7.4 on MacOS:

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

and get error at ./configure

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

There are 1 best solutions below

1
Larest On BEST ANSWER

It seems it need to use version original php-configure. For my case :

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

solve the trouble